1
0
forked from mirror/misskey
This commit is contained in:
syuilo 2021-01-13 21:43:06 +09:00
parent 114a9fbdb2
commit 52c12f96d5
2 changed files with 8 additions and 2 deletions

View File

@ -70,7 +70,6 @@ export default defineComponent({
data() { data() {
return { return {
deckStore, deckStore,
active: true,
dragging: false, dragging: false,
draghover: false, draghover: false,
dropready: false, dropready: false,
@ -83,6 +82,10 @@ export default defineComponent({
return this.column.type === 'main'; return this.column.type === 'main';
}, },
active(): boolean {
return this.column.active !== false;
},
keymap(): any { keymap(): any {
return { return {
'shift+up': () => this.$parent.$emit('parent-focus', 'up'), 'shift+up': () => this.$parent.$emit('parent-focus', 'up'),
@ -124,7 +127,9 @@ export default defineComponent({
toggleActive() { toggleActive() {
if (!this.isStacked) return; if (!this.isStacked) return;
this.active = !this.active; updateColumn(this.column.id, {
active: !this.column.active
});
}, },
getMenu() { getMenu() {

View File

@ -16,6 +16,7 @@ type Column = {
name: string | null; name: string | null;
width: number; width: number;
widgets?: ColumnWidget[]; widgets?: ColumnWidget[];
active?: boolean;
}; };
function copy<T>(x: T): T { function copy<T>(x: T): T {