@ -29,6 +29,10 @@ export default Vue.extend({
|
||||
icon: 'info-circle',
|
||||
text: this.$t('detail'),
|
||||
action: this.detail
|
||||
}], [{
|
||||
icon: 'align-left',
|
||||
text: this.$t('copy-content'),
|
||||
action: this.copyContent
|
||||
}], [{
|
||||
icon: 'link',
|
||||
text: this.$t('copy-link'),
|
||||
@ -81,6 +85,10 @@ export default Vue.extend({
|
||||
this.$router.push(`/notes/${this.note.id}`);
|
||||
},
|
||||
|
||||
copyContent() {
|
||||
copyToClipboard(this.note.text);
|
||||
},
|
||||
|
||||
copyLink() {
|
||||
copyToClipboard(`${url}/notes/${this.note.id}`);
|
||||
},
|
||||
|
Reference in New Issue
Block a user