From 7ffe559525006e209b30d513c17db5585a3b65ed Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 2 Jul 2019 18:32:24 +0900 Subject: [PATCH] Resolve #5085 --- locales/ja-JP.yml | 1 + src/client/app/common/views/components/note-menu.vue | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 88673e804f..a192093576 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -561,6 +561,7 @@ common/views/components/note-menu.vue: delete: "削除" delete-confirm: "この投稿を削除しますか?" remote: "投稿元で見る" + pin-limit-exceeded: "これ以上ピン留めできません。" common/views/components/user-menu.vue: mention: "メンション" diff --git a/src/client/app/common/views/components/note-menu.vue b/src/client/app/common/views/components/note-menu.vue index 8e342cfd57..f3bb5c38c8 100644 --- a/src/client/app/common/views/components/note-menu.vue +++ b/src/client/app/common/views/components/note-menu.vue @@ -9,7 +9,6 @@ import Vue from 'vue'; import i18n from '../../../i18n'; import { url } from '../../../config'; import copyToClipboard from '../../../common/scripts/copy-to-clipboard'; -import { concat, intersperse } from '../../../../../prelude/array'; import { faCopy, faEye, faEyeSlash } from '@fortawesome/free-regular-svg-icons'; export default Vue.extend({ @@ -129,6 +128,13 @@ export default Vue.extend({ splash: true }); this.destroyDom(); + }).catch(e => { + if (e.id === '72dab508-c64d-498f-8740-a8eec1ba385a') { + this.$root.dialog({ + type: 'error', + text: this.$t('pin-limit-exceeded') + }); + } }); },