Review comment incorporated
Gui2 Intent and Processor View
Change-Id: Ieb3b2c818f31ee7bff73b26cd5b7150c8f6fb92c
diff --git a/web/gui2/src/main/webapp/app/fw/layer/confirm/confirm.component.ts b/web/gui2/src/main/webapp/app/fw/layer/confirm/confirm.component.ts
index cd6aa7a..5c5bad2 100644
--- a/web/gui2/src/main/webapp/app/fw/layer/confirm/confirm.component.ts
+++ b/web/gui2/src/main/webapp/app/fw/layer/confirm/confirm.component.ts
@@ -16,6 +16,7 @@
import { Component, Input, Output, EventEmitter } from '@angular/core';
import { trigger, state, style, animate, transition } from '@angular/animations';
import { LogService } from '../../../log.service';
+import { LionService } from '../../../fw/util/lion.service';
/**
* ONOS GUI -- Layer -- Confirm Component
@@ -55,14 +56,19 @@
]
})
export class ConfirmComponent {
+
+ lionFn; // Function
+
@Input() message: string;
@Input() warning: string;
@Output() chosen: EventEmitter<boolean> = new EventEmitter();
constructor(
private log: LogService,
+ private lion: LionService,
) {
this.log.debug('ConfirmComponent constructed');
+ this.doLion();
}
/**
@@ -71,4 +77,11 @@
choice(chosen: boolean): void {
this.chosen.emit(chosen);
}
+
+ /**
+ * Read the LION bundle for App to get confirm dialouge header
+ */
+ doLion() {
+ this.lionFn = this.lion.bundle('core.view.App');
+ }
}