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, editActionIndex: -1,
anyOpenedPopups: false, anyOpenedPopups: false,
removeConfirmationDialog: '', removeConfirmationDialog: '',
confirmationDialogText: '',
messages: { messages: {
removeAction: "Are you sure you want to remove this action?" 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> <b>Show this action in the following tabs:</b>
</div> </div>
<ScopeSettings :scopeOptions="globalScopeOptions" <template v-if="action && action.cmd[0] && action.cmd[0].action !== 'set-ar'">
@show="updateScopes('global', 'show', $event)" <div>Extension settings (global)</div>
@set-label="updateScopes('global', 'label', $event)" <ScopeSettings :scopeOptions="globalScopeOptions"
@set-shortcut="updateScopes('global', 'shortcut', $event)" @show="updateScopes('global', 'show', $event)"
/> @set-label="updateScopes('global', 'label', $event)"
<ScopeSettings :scopeOptions="siteScopeOptions" @set-shortcut="updateScopes('global', 'shortcut', $event)"
@show="updateScopes('site', 'show', $event)" />
@set-label="updateScopes('site', 'label', $event)" </template>
@set-shortcut="updateScopes('site', 'shortcut', $event)"
/> <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" <ScopeSettings :scopeOptions="pageScopeOptions"
@show="updateScopes('page', 'show', $event)" @show="updateScopes('page', 'show', $event)"
@set-label="updateScopes('page', 'label', $event)" @set-label="updateScopes('page', 'label', $event)"