Skip to content

Commit

Permalink
Resolve syuilo#5085
Browse files Browse the repository at this point in the history
  • Loading branch information
syuilo authored and mei23 committed Jul 4, 2019
1 parent 2cd3746 commit ad35110
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions locales/ja-JP.yml
Expand Up @@ -520,6 +520,7 @@ common/views/components/note-menu.vue:
delete: "削除"
delete-confirm: "この投稿を削除しますか?"
remote: "投稿元で見る"
pin-limit-exceeded: "これ以上ピン留めできません。"

common/views/components/user-menu.vue:
mention: "メンション"
Expand Down
8 changes: 7 additions & 1 deletion src/client/app/common/views/components/note-menu.vue
Expand Up @@ -13,7 +13,6 @@ import { concat, intersperse } from '../../../../../prelude/array';
import { faCopy, faEye, faEyeSlash, } from '@fortawesome/free-regular-svg-icons';
import { faPlaneArrival, faPlaneDeparture } from '@fortawesome/free-solid-svg-icons';
export default Vue.extend({
i18n: i18n('common/views/components/note-menu.vue'),
props: ['note', 'source'],
Expand Down Expand Up @@ -147,6 +146,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')
});
}
});
},
Expand Down

0 comments on commit ad35110

Please sign in to comment.