summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAya Morisawa <AyaMorisawa4869@gmail.com>2019-01-06 17:45:14 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2019-01-06 17:45:14 +0900
commit15ce89a88dfede0941e7a5015dec957a0de5e101 (patch)
tree36146029b561458d6ff167e42e4d28dd1bf23502 /src
parentUpdate README.md [AUTOGEN] (#3834) (diff)
downloadsharkey-15ce89a88dfede0941e7a5015dec957a0de5e101.tar.gz
sharkey-15ce89a88dfede0941e7a5015dec957a0de5e101.tar.bz2
sharkey-15ce89a88dfede0941e7a5015dec957a0de5e101.zip
Resolve #3078 (#3838)
Diffstat (limited to 'src')
-rw-r--r--src/client/app/common/views/components/note-menu.vue8
-rw-r--r--src/client/app/init.ts2
2 files changed, 10 insertions, 0 deletions
diff --git a/src/client/app/common/views/components/note-menu.vue b/src/client/app/common/views/components/note-menu.vue
index 3f2ca50702..f7223b962c 100644
--- a/src/client/app/common/views/components/note-menu.vue
+++ b/src/client/app/common/views/components/note-menu.vue
@@ -30,6 +30,10 @@ export default Vue.extend({
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'),
action: this.copyLink
@@ -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}`);
},
diff --git a/src/client/app/init.ts b/src/client/app/init.ts
index c9d6fa4737..cbd49b3690 100644
--- a/src/client/app/init.ts
+++ b/src/client/app/init.ts
@@ -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,