summaryrefslogtreecommitdiff
path: root/src/client/ui
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2021-01-13 21:43:06 +0900
committersyuilo <syuilotan@yahoo.co.jp>2021-01-13 21:43:06 +0900
commit52c12f96d53c96f00f35867bcc40c2f0cb339e63 (patch)
tree7e2716b20e6f6a77b6b3536e9b55c7b4b9a5874f /src/client/ui
parentテーマをレジストリに保存するように (diff)
downloadmisskey-52c12f96d53c96f00f35867bcc40c2f0cb339e63.tar.gz
misskey-52c12f96d53c96f00f35867bcc40c2f0cb339e63.tar.bz2
misskey-52c12f96d53c96f00f35867bcc40c2f0cb339e63.zip
Resolve #7074
Diffstat (limited to 'src/client/ui')
-rw-r--r--src/client/ui/deck/column.vue9
-rw-r--r--src/client/ui/deck/deck-store.ts1
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 {