mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-11 23:54:43 +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');
|
$(this.$refs.modal).modal('hide');
|
||||||
},
|
},
|
||||||
copy(value) {
|
copy(value) {
|
||||||
navigator.clipboard.writeText(value);
|
navigator.clipboard.writeText(value).then(
|
||||||
HelperModule.flashAlertMsg(this.i18n.t('shareable_links.modal.copy_success'), 'success');
|
() => {
|
||||||
|
HelperModule.flashAlertMsg(this.i18n.t('shareable_links.modal.copy_success'), 'success');
|
||||||
|
}
|
||||||
|
);
|
||||||
},
|
},
|
||||||
saveDescription() {
|
saveDescription() {
|
||||||
this.dirty = true;
|
this.dirty = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue