Merge pull request #6002 from rekonder/aj_SCI_8986

Show toast message on successful copy [SCI-8986]
This commit is contained in:
ajugo 2023-08-17 15:14:05 +02:00 committed by GitHub
commit 032655f4e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;