Skip to content

Commit d869312

Browse files
committed
Disabling the openExternal button for a node without account name
1 parent c88885c commit d869312

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

src/css/app.styl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,3 @@
4343
.text-vblack {
4444
color: #000 !important;
4545
}
46-
47-
.link {
48-
49-
}
50-
.link:hover {
51-
color: #A000FD !important;
52-
cursor:pointer;
53-
}

src/pages/Index.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,14 +150,13 @@
150150
<q-item v-for="node in nodes" :key="node.id">
151151
<q-item-section>
152152
<q-item-label class="code"> {{ node.key }}</q-item-label>
153-
<q-item-label caption><q-btn dense flat size="sm" color="vgreen" @click="$utils.openExternal(node.account)" :label="node.account"/></q-item-label>
154-
<!-- <q-item-label @click="$utils.openExternal(node.account)" class="code text-vgreen link" caption> {{ node.account }} </q-item-label> -->
153+
<q-item-label caption><q-btn dense flat size="sm" color="vgreen" class="code" @click="$utils.openExternal(node.account)" :label="node.account" :disabled="node.account !== 'No account found' ? false : true"/></q-item-label>
155154
</q-item-section>
156155
<q-item-section side center>
157156
<q-item-label class="code text-vgreen" caption> {{ node.balance }}</q-item-label>
158157
</q-item-section>
159158
<q-item-section avatar v-if="identity.account_name && node.vote && node.account != identity.account_name">
160-
<q-btn outline color="vgreen" v-on:click="addToVote(node)" v-if="!voting_list.includes(node) ">Vote</q-btn>
159+
<q-btn outline color="vgreen" v-on:click="addToVote(node)" v-if="!voting_list.includes(node)">Vote</q-btn>
161160
<q-btn color="vgreen" class="text-vdark" v-on:click="addToVote(node)" v-if="voting_list.includes(node)">Vote</q-btn>
162161
</q-item-section>
163162
</q-item>

0 commit comments

Comments
 (0)