diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2021-01-13 21:43:06 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2021-01-13 21:43:06 +0900 |
| commit | 52c12f96d53c96f00f35867bcc40c2f0cb339e63 (patch) | |
| tree | 7e2716b20e6f6a77b6b3536e9b55c7b4b9a5874f /src/client | |
| parent | テーマをレジストリに保存するように (diff) | |
| download | misskey-52c12f96d53c96f00f35867bcc40c2f0cb339e63.tar.gz misskey-52c12f96d53c96f00f35867bcc40c2f0cb339e63.tar.bz2 misskey-52c12f96d53c96f00f35867bcc40c2f0cb339e63.zip | |
Resolve #7074
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/ui/deck/column.vue | 9 | ||||
| -rw-r--r-- | 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<T>(x: T): T { |