This commit is contained in:
Aya Morisawa
2019-01-06 17:45:14 +09:00
committed by syuilo
parent 4b13278a41
commit 15ce89a88d
3 changed files with 11 additions and 0 deletions

View File

@ -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}`);
},

View File

@ -124,6 +124,7 @@ import {
faMapMarker,
faRobot,
faHourglassHalf,
faAlignLeft
} from '@fortawesome/free-solid-svg-icons';
import {
@ -255,6 +256,7 @@ library.add(
faMapMarker,
faRobot,
faHourglassHalf,
faAlignLeft,
farBell,
farEnvelope,