From afeb8058b170e9e121d5d60fc4185f371934ef81 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 16 Sep 2018 23:15:02 +0900 Subject: [PATCH] Add mentions column (Deck) --- .../views/pages/deck/deck.column-core.vue | 5 +- .../views/pages/deck/deck.mentions-column.vue | 38 ++++++++ .../views/pages/deck/deck.mentions.vue | 93 +++++++++++++++++++ .../app/desktop/views/pages/deck/deck.vue | 9 ++ 4 files changed, 144 insertions(+), 1 deletion(-) create mode 100644 src/client/app/desktop/views/pages/deck/deck.mentions-column.vue create mode 100644 src/client/app/desktop/views/pages/deck/deck.mentions.vue diff --git a/src/client/app/desktop/views/pages/deck/deck.column-core.vue b/src/client/app/desktop/views/pages/deck/deck.column-core.vue index 7f219c0be1..b7602bd235 100644 --- a/src/client/app/desktop/views/pages/deck/deck.column-core.vue +++ b/src/client/app/desktop/views/pages/deck/deck.column-core.vue @@ -6,6 +6,7 @@ + diff --git a/src/client/app/desktop/views/pages/deck/deck.mentions.vue b/src/client/app/desktop/views/pages/deck/deck.mentions.vue new file mode 100644 index 0000000000..cecb75f067 --- /dev/null +++ b/src/client/app/desktop/views/pages/deck/deck.mentions.vue @@ -0,0 +1,93 @@ + + + diff --git a/src/client/app/desktop/views/pages/deck/deck.vue b/src/client/app/desktop/views/pages/deck/deck.vue index 5e7a07ea6b..4a4535959e 100644 --- a/src/client/app/desktop/views/pages/deck/deck.vue +++ b/src/client/app/desktop/views/pages/deck/deck.vue @@ -138,6 +138,15 @@ export default Vue.extend({ type: 'global' }); } + }, { + icon: '%fa:at%', + text: '%i18n:common.deck.mentions%', + action: () => { + this.$store.dispatch('settings/addDeckColumn', { + id: uuid(), + type: 'mentions' + }); + } }, { icon: '%fa:list%', text: '%i18n:common.deck.list%',