aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/components/ui/plugin/plugin-frame.component.ts
diff options
context:
space:
mode:
authorIdan Amit <ia096e@intl.att.com>2018-03-21 12:04:57 +0200
committerMichael Lando <ml636r@att.com>2018-03-27 15:04:23 +0000
commit7363f3d875e08d5195cb5e8b7e4f9ac86ec99ef5 (patch)
treec49f7d31d5b694330b47247f30d9e7a5d6f602ea /catalog-ui/src/app/ng2/components/ui/plugin/plugin-frame.component.ts
parentfb81a037f9f81be9bdb4b13032a9415654d6d2cc (diff)
Create Error page for offline plugin
Created an error page to be displayed when a plugin is offline Change-Id: I7bff7d29896e5eae88eca79784854bcd1086ca50 Issue-ID: SDC-1082 Signed-off-by: Idan Amit <ia096e@intl.att.com>
Diffstat (limited to 'catalog-ui/src/app/ng2/components/ui/plugin/plugin-frame.component.ts')
-rw-r--r--catalog-ui/src/app/ng2/components/ui/plugin/plugin-frame.component.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/catalog-ui/src/app/ng2/components/ui/plugin/plugin-frame.component.ts b/catalog-ui/src/app/ng2/components/ui/plugin/plugin-frame.component.ts
index fc0af53a44..2ba784727f 100644
--- a/catalog-ui/src/app/ng2/components/ui/plugin/plugin-frame.component.ts
+++ b/catalog-ui/src/app/ng2/components/ui/plugin/plugin-frame.component.ts
@@ -25,6 +25,12 @@ export class PluginFrameComponent implements OnInit {
}
ngOnInit(): void {
+ if (this.plugin.isOnline) {
+ this.initPlugin();
+ }
+ }
+
+ private initPlugin() {
this.pluginUrl = this.plugin.pluginSourceUrl;
this.isClosed = false;