Show toast message on successful copy [SCI-8986]

This commit is contained in:
Andrej 2023-08-17 11:21:53 +02:00
parent 0082b858ec
commit 9a09fbc8ce

View file

@ -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;