mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-11 15:13:25 +08:00
Show toast message on successful copy [SCI-8986]
This commit is contained in:
parent
0082b858ec
commit
9a09fbc8ce
1 changed files with 5 additions and 2 deletions
|
@ -159,8 +159,11 @@
|
|||
$(this.$refs.modal).modal('hide');
|
||||
},
|
||||
copy(value) {
|
||||
navigator.clipboard.writeText(value);
|
||||
HelperModule.flashAlertMsg(this.i18n.t('shareable_links.modal.copy_success'), 'success');
|
||||
navigator.clipboard.writeText(value).then(
|
||||
() => {
|
||||
HelperModule.flashAlertMsg(this.i18n.t('shareable_links.modal.copy_success'), 'success');
|
||||
}
|
||||
);
|
||||
},
|
||||
saveDescription() {
|
||||
this.dirty = true;
|
||||
|
|
Loading…
Reference in a new issue