mirror of
https://github.com/MisskeyIO/misskey
synced 2024-11-23 22:56:49 +09:00
Resolve #7074
This commit is contained in:
parent
114a9fbdb2
commit
52c12f96d5
@ -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() {
|
||||
|
@ -16,6 +16,7 @@ type Column = {
|
||||
name: string | null;
|
||||
width: number;
|
||||
widgets?: ColumnWidget[];
|
||||
active?: boolean;
|
||||
};
|
||||
|
||||
function copy<T>(x: T): T {
|
||||
|
Loading…
Reference in New Issue
Block a user