Skip to content
Snippets Groups Projects
Commit bc36bc59 authored by mathias.chouet's avatar mathias.chouet
Browse files

Suppression code inutilisé

parent 2e519f77
No related branches found
No related tags found
1 merge request!40Resolve "Amélioration du système de paramètres liés"
......@@ -3,22 +3,12 @@ import { Nub, Result, ParamDomainValue, Observer } from "jalhyd";
import { FormResult } from "./form-result";
import { FormulaireDefinition } from "./form-definition";
import { NgParameter } from "../ngparam";
import { NotificationsService } from "../../services/notifications/notifications.service";
import { ServiceFactory } from "../../services/service-factory";
import { I18nService } from "../../services/internationalisation/internationalisation.service";
export abstract class FormCompute implements Observer {
private notificationsService: NotificationsService;
private intlService: I18nService;
constructor(protected _formBase: FormulaireDefinition, protected _formResult: FormResult) {
// indirectly subscribe to Nub result updates
this._formBase.addObserver(this);
this.notificationsService = ServiceFactory.instance.notificationsService;
this.intlService = ServiceFactory.instance.i18nService;
}
protected abstract compute();
......@@ -117,11 +107,6 @@ export abstract class FormCompute implements Observer {
case "nubResultUpdated":
// forward Nub results update notification to FormCompute objects
this.reaffectResultComponents();
// @TODO reenable later wen chain computation is executed only once or it is a snackbar hell !
/* this.notificationsService.notify(
this.intlService.localizeText("INFO_SNACKBAR_RESULTS_CALCULATED") + " " + this._formBase.calculatorName,
1500
); */
break;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment