Add checkbox coin selection (js version)

This commit is contained in:
Dennis Reimann 2020-04-08 13:29:16 +02:00
parent d6d58a98db
commit 5a841216b8
No known key found for this signature in database
GPG Key ID: 5009E1797F03F8D0

View File

@ -25,8 +25,22 @@
:key="item.outpoint"
v-bind:class="{ 'list-group-item-secondary': item.selected }"
v-on:click="toggleItem($event, item, !item.selected)">
<a v-on:click="toggleItem($event, item, !item.selected)" class="text-truncate flex-1" v-tooltip="item.outpoint" v-bind:href="item.link" target="_blank">{{item.outpoint}}</a>
<div :id="item.outpoint" class="d-flex justify-content-between align-items-center">
<div class="d-flex justify-content-between align-items-center w-100">
<input class="mr-2"
type="checkbox"
v-bind:id="item.outpoint"
v-bind:value="item.outpoint"
v-bind:checked="item.selected">
<label
class="flex-1 d-inline-block text-truncate mb-0"
v-bind:for="item.outpoint">
<a
v-tooltip="item.outpoint"
v-bind:href="item.link"
target="_blank">
{{item.outpoint}}
</a>
</label>
<div>
<span v-if="item.comment" data-toggle="tooltip" v-tooltip="item.comment" class="badge badge-info badge-pill" style="font-style: italic">i</span>
<span