Skip to content

Commit 5abae21

Browse files
author
NarrowsProjects
committed
chore: switch url and notify arguments
1 parent 6c1b59e commit 5abae21

11 files changed

Lines changed: 11 additions & 11 deletions

File tree

lib/public/components/Filters/common/FilteringModel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export class FilteringModel extends Observable {
168168
* @param {string|null} [url=null] the url that is to be parsed into active filters
169169
* @returns {undefined}
170170
*/
171-
setFilterFromURL(url = null, notify = false) {
171+
setFilterFromURL(notify = false, url = null) {
172172
const params = this._computeParameters(url);
173173
const { page, filter } = params;
174174

lib/public/components/Filters/common/filtersPanelPopover.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ const pasteButtonOption = (model) => {
161161
return h('button.btn.btn-primary', {
162162
onclick: async () => {
163163
const url = await navigator.clipboard.readText();
164-
filteringModel.setFilterFromURL(url, true);
164+
filteringModel.setFilterFromURL(true, url);
165165
},
166166
disabled: !clipboardSupported,
167167
id: 'paste-filter',

lib/public/views/DataPasses/DataPassesOverviewModel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class DataPassesOverviewModel extends OverviewPageModel {
6161
* @param {boolean} notify if the FilteringModel should notify it's observers after finishing setting the filters
6262
*/
6363
setFilterFromURL(notify) {
64-
this._filteringModel.setFilterFromURL(null, notify);
64+
this._filteringModel.setFilterFromURL(notify);
6565
}
6666

6767
/**

lib/public/views/Environments/Overview/EnvironmentOverviewModel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export class EnvironmentOverviewModel extends OverviewPageModel {
7676
* @param {boolean} notify if the FilteringModel should notify it's observers after finishing setting the filters
7777
*/
7878
setFilterFromURL(notify) {
79-
this._filteringModel.setFilterFromURL(null, notify);
79+
this._filteringModel.setFilterFromURL(notify);
8080
}
8181

8282
/**

lib/public/views/LhcFills/Overview/LhcFillsOverviewModel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export class LhcFillsOverviewModel extends OverviewPageModel {
8080
* @param {boolean} notify if the FilteringModel should notify it's observers after finishing setting the filters
8181
*/
8282
setFilterFromURL(notify) {
83-
this._filteringModel.setFilterFromURL(null, notify);
83+
this._filteringModel.setFilterFromURL(notify);
8484
}
8585

8686
/**

lib/public/views/Logs/Overview/LogsOverviewModel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export class LogsOverviewModel extends Observable {
8686
* @param {boolean} notify if the FilteringModel should notify it's observers after finishing setting the filters
8787
*/
8888
setFilterFromURL(notify) {
89-
this._filteringModel.setFilterFromURL(null, notify);
89+
this._filteringModel.setFilterFromURL(notify);
9090
}
9191

9292
/**

lib/public/views/QcFlagTypes/Overview/QcFlagTypesOverviewModel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class QcFlagTypesOverviewModel extends OverviewPageModel {
6161
* @param {boolean} notify if the FilteringModel should notify it's observers after finishing setting the filters
6262
*/
6363
setFilterFromURL(notify) {
64-
this._filteringModel.setFilterFromURL(null, notify);
64+
this._filteringModel.setFilterFromURL(notify);
6565
}
6666

6767
/**

lib/public/views/Runs/Overview/RunsOverviewModel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export class RunsOverviewModel extends OverviewPageModel {
168168
* @param {boolean} notify if the FilteringModel should notify it's observers after finishing setting the filters
169169
*/
170170
setFilterFromURL(notify) {
171-
this._filteringModel.setFilterFromURL(null, notify);
171+
this._filteringModel.setFilterFromURL(notify);
172172
}
173173

174174
/**

lib/public/views/SimulationPasses/AnchoredOverview/AnchoredSimulationPassesOverviewModel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class AnchoredSimulationPassesOverviewModel extends OverviewPageModel {
4848
* @param {boolean} notify if the FilteringModel should notify it's observers after finishing setting the filters
4949
*/
5050
setFilterFromURL(notify) {
51-
this._filteringModel.setFilterFromURL(null, notify);
51+
this._filteringModel.setFilterFromURL(notify);
5252
}
5353

5454
/**

lib/public/views/SimulationPasses/PerLhcPeriodOverview/SimulationPassesPerLhcPeriodOverviewModel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export class SimulationPassesPerLhcPeriodOverviewModel extends OverviewPageModel
6464
* @param {boolean} notify if the FilteringModel should notify it's observers after finishing setting the filters
6565
*/
6666
setFilterFromURL(notify) {
67-
this._filteringModel.setFilterFromURL(null, notify);
67+
this._filteringModel.setFilterFromURL(notify);
6868
}
6969

7070
/**

0 commit comments

Comments
 (0)