[#160] Make success indicator more clear
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
142ca55074
commit
d9fe7df6cb
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
||||||
:disabled="!content"
|
:disabled="!content"
|
||||||
@click="copy"
|
@click="copy"
|
||||||
>
|
>
|
||||||
<i class="fas fa-clipboard" />
|
<i :class="{'fas fa-fw fa-clipboard': !copyToClipboardSuccess, 'fas fa-fw fa-circle-check': copyToClipboardSuccess}" />
|
||||||
</button>
|
</button>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
@ -29,7 +29,7 @@ export default {
|
||||||
this.copyToClipboardSuccess = true
|
this.copyToClipboardSuccess = true
|
||||||
window.setTimeout(() => {
|
window.setTimeout(() => {
|
||||||
this.copyToClipboardSuccess = false
|
this.copyToClipboardSuccess = false
|
||||||
}, 500)
|
}, 1500)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue