jenkins-bot has submitted this change and it was merged.
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, 8 insertions(+), 2 deletions(-)
Approvals:
Alex Monk: Looks good to me, approved
Jforrester: Looks good to me, but someone else must approve
jenkins-bot: Verified
diff --git a/src/ui/dialogs/ve.ui.FindAndReplaceDialog.js
b/src/ui/dialogs/ve.ui.FindAndReplaceDialog.js
index 268c13f..d26b312 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.userConfig( 'visualeditor-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.userConfig( 'visualeditor-findAndReplace-regex' )
} );
this.previousButton = new OO.ui.ButtonWidget( {
@@ -256,6 +258,10 @@
this.updateFragments();
this.renderFragments();
this.highlightFocused( true );
+ ve.userConfig( {
+ 'visualeditor-findAndReplace-matchCase':
this.matchCaseToggle.getValue(),
+ 'visualeditor-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: merged
Gerrit-Change-Id: Ia680b853363797d236ed68ba74e6a14940c849d3
Gerrit-PatchSet: 4
Gerrit-Project: VisualEditor/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Esanders <[email protected]>
Gerrit-Reviewer: Alex Monk <[email protected]>
Gerrit-Reviewer: Eranroz <[email protected]>
Gerrit-Reviewer: Esanders <[email protected]>
Gerrit-Reviewer: Jforrester <[email protected]>
Gerrit-Reviewer: Krinkle <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits