Don't allow users to switch to a mode they are already in

Change-Id: I082108c81ab871b64df76b6f9ba5cf4314ce6458
This commit is contained in:
Ed Sanders 2020-05-21 18:26:08 +01:00
parent d0dd4cf036
commit 406aed0577

View file

@ -201,6 +201,10 @@ ReplyWidget.prototype.onModeTabSelectChoose = function ( option ) {
mode = option.getData(),
widget = this;
if ( mode === this.getMode() ) {
return;
}
this.setPending( true );
this.modeTabSelect.setDisabled( true );
switch ( mode ) {