From 52c12f96d53c96f00f35867bcc40c2f0cb339e63 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 13 Jan 2021 21:43:06 +0900 Subject: [PATCH] Resolve #7074 --- src/client/ui/deck/column.vue | 9 +++++++-- src/client/ui/deck/deck-store.ts | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/client/ui/deck/column.vue b/src/client/ui/deck/column.vue index 548e0eb091..d0a39965b1 100644 --- a/src/client/ui/deck/column.vue +++ b/src/client/ui/deck/column.vue @@ -70,7 +70,6 @@ export default defineComponent({ data() { return { deckStore, - active: true, dragging: false, draghover: false, dropready: false, @@ -83,6 +82,10 @@ export default defineComponent({ return this.column.type === 'main'; }, + active(): boolean { + return this.column.active !== false; + }, + keymap(): any { return { 'shift+up': () => this.$parent.$emit('parent-focus', 'up'), @@ -124,7 +127,9 @@ export default defineComponent({ toggleActive() { if (!this.isStacked) return; - this.active = !this.active; + updateColumn(this.column.id, { + active: !this.column.active + }); }, getMenu() { diff --git a/src/client/ui/deck/deck-store.ts b/src/client/ui/deck/deck-store.ts index 93ea0a3228..025d5d70f4 100644 --- a/src/client/ui/deck/deck-store.ts +++ b/src/client/ui/deck/deck-store.ts @@ -16,6 +16,7 @@ type Column = { name: string | null; width: number; widgets?: ColumnWidget[]; + active?: boolean; }; function copy(x: T): T {