Esanders has uploaded a new change for review.

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

Change subject: Store find and replace toggle states in user config
......................................................................

Store find and replace toggle states in user config

Bug: T110541
Change-Id: Ia680b853363797d236ed68ba74e6a14940c849d3
---
M src/ui/dialogs/ve.ui.FindAndReplaceDialog.js
1 file changed, 6 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/VisualEditor/VisualEditor 
refs/changes/10/234610/1

diff --git a/src/ui/dialogs/ve.ui.FindAndReplaceDialog.js 
b/src/ui/dialogs/ve.ui.FindAndReplaceDialog.js
index 6705b0d..fe4fa69 100644
--- a/src/ui/dialogs/ve.ui.FindAndReplaceDialog.js
+++ b/src/ui/dialogs/ve.ui.FindAndReplaceDialog.js
@@ -70,11 +70,13 @@
        } );
        this.matchCaseToggle = new OO.ui.ToggleButtonWidget( {
                icon: 'searchCaseSensitive',
-               iconTitle: ve.msg( 'visualeditor-find-and-replace-match-case' )
+               iconTitle: ve.msg( 'visualeditor-find-and-replace-match-case' ),
+               value: ve.config( 'findAndReplace-matchCase' )
        } );
        this.regexToggle = new OO.ui.ToggleButtonWidget( {
                icon: 'searchRegularExpression',
-               iconTitle: ve.msg( 
'visualeditor-find-and-replace-regular-expression' )
+               iconTitle: ve.msg( 
'visualeditor-find-and-replace-regular-expression' ),
+               value: ve.config( 'findAndReplace-regex' )
        } );
 
        this.previousButton = new OO.ui.ButtonWidget( {
@@ -256,6 +258,8 @@
        this.updateFragments();
        this.renderFragments();
        this.highlightFocused( true );
+       ve.config( 'findAndReplace-matchCase', this.matchCaseToggle.getValue() 
);
+       ve.config( 'findAndReplace-regex', this.regexToggle.getValue() );
 };
 
 /**

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia680b853363797d236ed68ba74e6a14940c849d3
Gerrit-PatchSet: 1
Gerrit-Project: VisualEditor/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Esanders <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to