Enabled --prod mode for GUI2 - refactored modules
Change-Id: I224fe9564cb225b9ebaed0a43281de54ec6eb274
diff --git a/web/gui2/src/main/webapp/app/view/apps/apps.component.ts b/web/gui2/src/main/webapp/app/view/apps/apps.component.ts
index b2bb38b..ed6d30a 100644
--- a/web/gui2/src/main/webapp/app/view/apps/apps.component.ts
+++ b/web/gui2/src/main/webapp/app/view/apps/apps.component.ts
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-import { Component, OnInit, OnDestroy } from '@angular/core';
+import { Component, OnInit, OnDestroy, Inject } from '@angular/core';
import { DialogService } from '../../fw/layer/dialog.service';
import { FnService } from '../../fw/util/fn.service';
import { IconService } from '../../fw/svg/icon.service';
@@ -97,6 +97,14 @@
friendlyProps: string[];
ctrlBtnState: CtrlBtnState;
detailsPanel: any;
+ appFile: any;
+ activateImmediately = '';
+
+ uploadTip: string;
+ activateTip: string;
+ deactivateTip: string;
+ uninstallTip: string;
+ downloadTip: string;
constructor(
protected fs: FnService,
@@ -109,7 +117,7 @@
private ps: PanelService,
private ufs: UrlFnService,
protected wss: WebSocketService,
- private window: Window,
+ @Inject('Window') private window: Window,
) {
super(fs, null, log, wss, 'app');
this.responseCallback = this.appResponseCb;
@@ -130,6 +138,11 @@
} else {
this.doLion();
}
+ this.uploadTip = this.lionFn('tt_ctl_upload');
+ this.activateTip = this.lionFn('tt_ctl_activate');
+ this.deactivateTip = this.lionFn('tt_ctl_deactivate');
+ this.uninstallTip = this.lionFn('tt_ctl_uninstall');
+ this.downloadTip = this.lionFn('tt_ctl_download');
}
ngOnInit() {
@@ -244,4 +257,10 @@
dummyLion(key: string): string {
return '%' + key + '%';
}
+
+ appDropped() {
+ this.activateImmediately = activateOption;
+// $scope.$emit('FileChanged'); // TODO: Implement this
+ this.appFile = null;
+ }
}