*Dialog: Flag back/cancel actions

Change-Id: If3772863078a020eba9b9b43f58044a5aacb7296
This commit is contained in:
Ed Sanders 2015-08-06 14:34:32 +01:00 committed by Jforrester
parent 165c4c8ef0
commit f579ce52a2
8 changed files with 10 additions and 10 deletions

View file

@ -73,18 +73,18 @@ ve.ui.MWMediaDialog.static.actions = [
{
action: 'cancelchoose',
label: OO.ui.deferMsg( 'visualeditor-dialog-media-goback' ),
flags: 'safe',
flags: [ 'safe', 'back' ],
modes: [ 'info' ]
},
{
label: OO.ui.deferMsg( 'visualeditor-dialog-action-cancel' ),
flags: 'safe',
flags: [ 'safe', 'back' ],
modes: [ 'edit', 'insert', 'select' ]
},
{
action: 'back',
label: OO.ui.deferMsg( 'visualeditor-dialog-media-goback' ),
flags: 'safe',
flags: [ 'safe', 'back' ],
modes: [ 'change' ]
}
];

View file

@ -42,7 +42,7 @@ ve.ui.MWMetaDialog.static.actions = [
},
{
label: OO.ui.deferMsg( 'visualeditor-dialog-action-cancel' ),
flags: 'safe'
flags: [ 'safe', 'back' ]
}
];

View file

@ -51,7 +51,7 @@ ve.ui.MWReferenceDialog.static.actions = [
},
{
label: OO.ui.deferMsg( 'visualeditor-dialog-action-cancel' ),
flags: 'safe',
flags: [ 'safe', 'back' ],
modes: [ 'insert', 'edit', 'insert-select' ]
},
{

View file

@ -45,7 +45,7 @@ ve.ui.MWReferencesListDialog.static.actions = [
},
{
label: OO.ui.deferMsg( 'visualeditor-dialog-action-cancel' ),
flags: 'safe',
flags: [ 'safe', 'back' ],
modes: 'edit'
}
];

View file

@ -42,7 +42,7 @@ ve.ui.MWRequiredParamBlankConfirmDialog.static.actions = [
{
action: 'cancel',
label: OO.ui.deferMsg( 'visualeditor-dialog-transclusion-required-parameter-dialog-cancel' ),
flags: 'safe'
flags: [ 'safe', 'back' ]
}
];

View file

@ -50,7 +50,7 @@ ve.ui.MWSaveDialog.static.actions = [
},
{
label: OO.ui.deferMsg( 'visualeditor-savedialog-label-resume-editing' ),
flags: 'safe',
flags: [ 'safe', 'back' ],
modes: [ 'save', 'conflict' ]
},
{

View file

@ -57,7 +57,7 @@ ve.ui.MWTemplateDialog.static.actions = [
},
{
label: OO.ui.deferMsg( 'visualeditor-dialog-action-cancel' ),
flags: 'safe',
flags: [ 'safe', 'back' ],
modes: [ 'insert', 'edit' ]
}
];

View file

@ -43,7 +43,7 @@ ve.ui.MWWikitextSwitchConfirmDialog.static.actions = [
{
action: 'cancel',
label: OO.ui.deferMsg( 'visualeditor-mweditmodesource-warning-cancel' ),
flags: 'safe'
flags: [ 'safe', 'back' ]
},
{
action: 'switch',