Fix popup not displaying
This commit is contained in:
parent
470a7e8883
commit
83d84e5a93
@ -1,7 +1,13 @@
|
||||
export default {
|
||||
computed: {
|
||||
scopeActions: function() {
|
||||
return this.settings.active.actions.filter(x => x.scopes[this.scope] && x.scopes[this.scope].show) || [];
|
||||
return this.settings.active.actions.filter(x => {
|
||||
if (! x.scopes) {
|
||||
console.error('This action does not have a scope.', x);
|
||||
return false;
|
||||
}
|
||||
return x.scopes[this.scope] && x.scopes[this.scope].show
|
||||
}) || [];
|
||||
},
|
||||
extensionActions: function(){
|
||||
return this.scopeActions.filter(x => x.cmd.length === 1 && x.cmd[0].action === 'set-extension-mode') || [];
|
||||
|
@ -512,6 +512,8 @@ var ExtensionConf = {
|
||||
playerUi: {
|
||||
show: true,
|
||||
path: 'zoom'
|
||||
},
|
||||
scopes: {
|
||||
}
|
||||
}, {
|
||||
name: 'Hold to pan',
|
||||
|
Loading…
Reference in New Issue
Block a user