Skip to content

Commit 61fefd0

Browse files
author
NarrowsProjects
committed
chore: add missing warning passes
1 parent aa4054e commit 61fefd0

4 files changed

Lines changed: 13 additions & 10 deletions

File tree

lib/public/views/QcFlags/ForDataPass/QcFlagsForDataPassOverviewModel.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ import { DetectorType } from '../../../domain/enums/DetectorTypes.js';
2525
export class QcFlagsForDataPassOverviewModel extends QcFlagsOverviewModel {
2626
/**
2727
* The constructor of the Overview model object
28+
* @param {Map<string, string>} warnings a map storing warnings to show to the user
2829
*/
29-
constructor() {
30-
super();
30+
constructor(warnings) {
31+
super(warnings);
3132
this._dataPass$ = new ObservableData(RemoteData.notAsked());
3233
this._dataPass$.bubbleTo(this);
3334
}

lib/public/views/QcFlags/ForSimulationPass/QcFlagsForSimulationPassOverviewModel.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ import { ObservableData } from '../../../utilities/ObservableData.js';
2424
export class QcFlagsForSimulationPassOverviewModel extends QcFlagsOverviewModel {
2525
/**
2626
* The constructor of the Overview model object
27+
* @param {Map<string, string>} warnings a map storing warnings to show to the user
2728
*/
28-
constructor() {
29-
super();
29+
constructor(warnings) {
30+
super(warnings);
3031
this._simulationPass$ = new ObservableData(RemoteData.notAsked());
3132
this._simulationPass$.bubbleTo(this);
3233
}

lib/public/views/QcFlags/QcFlagsModel.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ export class QcFlagsModel extends Observable {
3333
super();
3434
this.model = model;
3535

36-
this._forDataPassOverviewModel = new QcFlagsForDataPassOverviewModel();
36+
this._forDataPassOverviewModel = new QcFlagsForDataPassOverviewModel(model.warnings);
3737
this._forDataPassOverviewModel.bubbleTo(this);
3838

39-
this._forSimulationPassOverviewModel = new QcFlagsForSimulationPassOverviewModel();
39+
this._forSimulationPassOverviewModel = new QcFlagsForSimulationPassOverviewModel(model.warnings);
4040
this._forSimulationPassOverviewModel.bubbleTo(this);
4141

42-
this._synchronousOverviewModel = new SynchronousQcFlagsOverviewModel();
42+
this._synchronousOverviewModel = new SynchronousQcFlagsOverviewModel(model.warnings);
4343
this._synchronousOverviewModel.bubbleTo(this);
4444

45-
this._gaqFlagsOverviewModel = new GaqFlagsOverviewModel();
45+
this._gaqFlagsOverviewModel = new GaqFlagsOverviewModel(model.warnings);
4646
this._gaqFlagsOverviewModel.bubbleTo(this);
4747
}
4848

lib/public/views/QcFlags/Synchronous/SynchronousQcFlagsOverviewModel.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ import { buildUrl } from '/js/src/index.js';
2222
export class SynchronousQcFlagsOverviewModel extends QcFlagsOverviewModel {
2323
/**
2424
* The constructor of the Overview model object
25+
* @param {Map<string, string>} warnings a map storing warnings to show to the user
2526
*/
26-
constructor() {
27-
super();
27+
constructor(warnings) {
28+
super(warnings);
2829
}
2930

3031
/**

0 commit comments

Comments
 (0)