mirror of
https://github.com/Luzifer/ots.git
synced 2024-10-01 01:06:09 -04:00
[#160] Make success indicator more clear
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
142ca55074
commit
d9fe7df6cb
@ -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 New Issue
Block a user