Turn Resolve Group into action

Closes #1252
This commit is contained in:
JannisX11 2022-02-27 22:13:28 +01:00
parent ebea154699
commit 886900d2cd
2 changed files with 9 additions and 2 deletions

View File

@ -448,7 +448,7 @@ class Group extends OutlinerNode {
}
}})},
{icon: 'sort_by_alpha', name: 'menu.group.sort', condition: {modes: ['edit']}, click: function(group) {group.sortContent()}},
{icon: 'fa-leaf', name: 'menu.group.resolve', condition: {modes: ['edit']}, click: function(group) {group.resolve()}},
'resolve_group',
'delete'
]);
Object.defineProperty(Group, 'all', {
@ -674,4 +674,11 @@ BARS.defineActions(function() {
}).show();
}
})
new Action('resolve_group', {
icon: 'fa-leaf',
condition: {modes: ['edit'], method: () => Group.selected},
click() {
Group.selected.resolve();
}
})
})

File diff suppressed because one or more lines are too long