Fix popup not displaying

This commit is contained in:
Tamius Han 2019-10-27 23:20:45 +01:00
parent 470a7e8883
commit 83d84e5a93
2 changed files with 9 additions and 1 deletions

View File

@ -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') || [];

View File

@ -512,6 +512,8 @@ var ExtensionConf = {
playerUi: {
show: true,
path: 'zoom'
},
scopes: {
}
}, {
name: 'Hold to pan',