parent
4b13278a41
commit
15ce89a88d
3 changed files with 11 additions and 0 deletions
|
@ -367,6 +367,7 @@ common/views/components/nav.vue:
|
||||||
common/views/components/note-menu.vue:
|
common/views/components/note-menu.vue:
|
||||||
mention: "メンション"
|
mention: "メンション"
|
||||||
detail: "詳細"
|
detail: "詳細"
|
||||||
|
copy-content: "内容をコピー"
|
||||||
copy-link: "リンクをコピー"
|
copy-link: "リンクをコピー"
|
||||||
favorite: "お気に入り"
|
favorite: "お気に入り"
|
||||||
unfavorite: "お気に入り解除"
|
unfavorite: "お気に入り解除"
|
||||||
|
|
|
@ -29,6 +29,10 @@ export default Vue.extend({
|
||||||
icon: 'info-circle',
|
icon: 'info-circle',
|
||||||
text: this.$t('detail'),
|
text: this.$t('detail'),
|
||||||
action: this.detail
|
action: this.detail
|
||||||
|
}], [{
|
||||||
|
icon: 'align-left',
|
||||||
|
text: this.$t('copy-content'),
|
||||||
|
action: this.copyContent
|
||||||
}], [{
|
}], [{
|
||||||
icon: 'link',
|
icon: 'link',
|
||||||
text: this.$t('copy-link'),
|
text: this.$t('copy-link'),
|
||||||
|
@ -81,6 +85,10 @@ export default Vue.extend({
|
||||||
this.$router.push(`/notes/${this.note.id}`);
|
this.$router.push(`/notes/${this.note.id}`);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
copyContent() {
|
||||||
|
copyToClipboard(this.note.text);
|
||||||
|
},
|
||||||
|
|
||||||
copyLink() {
|
copyLink() {
|
||||||
copyToClipboard(`${url}/notes/${this.note.id}`);
|
copyToClipboard(`${url}/notes/${this.note.id}`);
|
||||||
},
|
},
|
||||||
|
|
|
@ -124,6 +124,7 @@ import {
|
||||||
faMapMarker,
|
faMapMarker,
|
||||||
faRobot,
|
faRobot,
|
||||||
faHourglassHalf,
|
faHourglassHalf,
|
||||||
|
faAlignLeft
|
||||||
} from '@fortawesome/free-solid-svg-icons';
|
} from '@fortawesome/free-solid-svg-icons';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
@ -255,6 +256,7 @@ library.add(
|
||||||
faMapMarker,
|
faMapMarker,
|
||||||
faRobot,
|
faRobot,
|
||||||
faHourglassHalf,
|
faHourglassHalf,
|
||||||
|
faAlignLeft,
|
||||||
|
|
||||||
farBell,
|
farBell,
|
||||||
farEnvelope,
|
farEnvelope,
|
||||||
|
|
Loading…
Reference in a new issue