Minor changes to add action popup

This commit is contained in:
Tamius Han 2019-05-05 00:55:03 +02:00
parent a783c75b98
commit 86eeab323d
2 changed files with 20 additions and 10 deletions

View File

@ -129,6 +129,7 @@ export default {
editActionIndex: -1,
anyOpenedPopups: false,
removeConfirmationDialog: '',
confirmationDialogText: '',
messages: {
removeAction: "Are you sure you want to remove this action?"
},

View File

@ -58,16 +58,25 @@
<b>Show this action in the following tabs:</b>
</div>
<ScopeSettings :scopeOptions="globalScopeOptions"
@show="updateScopes('global', 'show', $event)"
@set-label="updateScopes('global', 'label', $event)"
@set-shortcut="updateScopes('global', 'shortcut', $event)"
/>
<ScopeSettings :scopeOptions="siteScopeOptions"
@show="updateScopes('site', 'show', $event)"
@set-label="updateScopes('site', 'label', $event)"
@set-shortcut="updateScopes('site', 'shortcut', $event)"
/>
<template v-if="action && action.cmd[0] && action.cmd[0].action !== 'set-ar'">
<div>Extension settings (global)</div>
<ScopeSettings :scopeOptions="globalScopeOptions"
@show="updateScopes('global', 'show', $event)"
@set-label="updateScopes('global', 'label', $event)"
@set-shortcut="updateScopes('global', 'shortcut', $event)"
/>
</template>
<template v-if="action && action.cmd[0] && action.cmd[0].action !== 'set-ar'">
<div>Site settings (site)</div>
<ScopeSettings :scopeOptions="siteScopeOptions"
@show="updateScopes('site', 'show', $event)"
@set-label="updateScopes('site', 'label', $event)"
@set-shortcut="updateScopes('site', 'shortcut', $event)"
/>
</template>
<div>Video settings (page)</div>
<ScopeSettings :scopeOptions="pageScopeOptions"
@show="updateScopes('page', 'show', $event)"
@set-label="updateScopes('page', 'label', $event)"