FM GUI as an NPM library for GUI 2
* added dynamic loading of external modules
* new commands on Alarm to allow create/updating/delete
* new fields in alarm gui
Change-Id: I9a7f4d665618a7949bb02039374974dabf6e5363
diff --git a/web/gui2-fw-lib/projects/gui2-fw-lib/src/lib/layer/confirm/confirm.component.spec.ts b/web/gui2-fw-lib/projects/gui2-fw-lib/src/lib/layer/confirm/confirm.component.spec.ts
index f4e76e0..9692e3a 100644
--- a/web/gui2-fw-lib/projects/gui2-fw-lib/src/lib/layer/confirm/confirm.component.spec.ts
+++ b/web/gui2-fw-lib/projects/gui2-fw-lib/src/lib/layer/confirm/confirm.component.spec.ts
@@ -32,7 +32,8 @@
let fixture: ComponentFixture<ConfirmComponent>;
const bundleObj = {
'core.view.App': {
- test: 'test1'
+ test: 'test1',
+ dlg_confirm_action: 'Confirm'
}
};
const mockLion = (key) => {
@@ -62,6 +63,9 @@
beforeEach(() => {
fixture = TestBed.createComponent(ConfirmComponent);
component = fixture.debugElement.componentInstance;
+ component.title = 'Confirm';
+ component.message = 'A message';
+ component.warning = 'A warning';
fixture.detectChanges();
});
@@ -73,7 +77,7 @@
const appDe: DebugElement = fixture.debugElement;
const divDe = appDe.query(By.css('div#app-dialog h3'));
const div: HTMLElement = divDe.nativeElement;
- expect(div.textContent).toEqual(' %dlg_confirm_action% ');
+ expect(div.textContent).toEqual(' Confirm ');
});
it('should have a div.dialog-button inside a div#app-dialog', () => {