Matthias Mullie has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/312253

Change subject: Change mid-upload 'cancel' button to 'back'
......................................................................

Change mid-upload 'cancel' button to 'back'

Bug: T114938
Change-Id: I964708e1267223b181630b9bea5b19e2bdf242be
---
M modules/ve-mw/ui/dialogs/ve.ui.MWMediaDialog.js
1 file changed, 14 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor 
refs/changes/53/312253/1

diff --git a/modules/ve-mw/ui/dialogs/ve.ui.MWMediaDialog.js 
b/modules/ve-mw/ui/dialogs/ve.ui.MWMediaDialog.js
index 56f8bad..26da96d 100644
--- a/modules/ve-mw/ui/dialogs/ve.ui.MWMediaDialog.js
+++ b/modules/ve-mw/ui/dialogs/ve.ui.MWMediaDialog.js
@@ -87,9 +87,15 @@
                modes: [ 'info' ]
        },
        {
+               action: 'cancelupload',
+               label: OO.ui.deferMsg( 'visualeditor-dialog-media-goback' ),
+               flags: [ 'safe', 'back' ],
+               modes: [ 'upload-info' ]
+       },
+       {
                label: OO.ui.deferMsg( 'visualeditor-dialog-action-cancel' ),
                flags: [ 'safe', 'back' ],
-               modes: [ 'edit', 'insert', 'select', 'search', 'upload-upload', 
'upload-info' ]
+               modes: [ 'edit', 'insert', 'select', 'search', 'upload-upload' ]
        },
        {
                action: 'back',
@@ -1371,6 +1377,13 @@
                                return this.mediaUploadBooklet.initialize();
                        };
                        break;
+               case 'cancelupload':
+                       handler = function () {
+                               this.searchTabs.setCard( 'upload' );
+                               this.searchTabs.toggleMenu( true );
+                               return this.mediaUploadBooklet.initialize();
+                       };
+                       break;
                case 'upload':
                        return new OO.ui.Process( 
this.mediaUploadBooklet.uploadFile() );
                case 'save':

-- 
To view, visit https://gerrit.wikimedia.org/r/312253
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I964708e1267223b181630b9bea5b19e2bdf242be
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Matthias Mullie <mmul...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to