summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguochuyicmri <guochuyi@chinamobile.com>2019-05-09 16:32:36 +0800
committerguochuyicmri <guochuyi@chinamobile.com>2019-05-09 16:32:43 +0800
commite31a1c4a8e25dbcc12348e210cee3c292547b90d (patch)
tree5bc5e9cee95a6477caf9c6616257160168efb9fe
parentca07a2d627248266d611d057d4450201f10334ba (diff)
Service instance lifecycle management
Change-Id: Ifd0768dae0d13a8daca99c488323ef1e5751020a Issue-ID: USECASEUI-218 Signed-off-by: guochuyicmri <guochuyi@chinamobile.com>
-rw-r--r--usecaseui-portal/src/app/services/onboard-vnf-vm/onboard-vnf-vm.component.ts3
-rw-r--r--usecaseui-portal/src/assets/i18n/en.json16
-rw-r--r--usecaseui-portal/src/assets/i18n/zh.json15
-rw-r--r--usecaseui-portal/src/assets/images/execute-faild.pngbin0 -> 1620 bytes
-rw-r--r--usecaseui-portal/src/assets/images/execute-inproess.pngbin0 -> 2005 bytes
-rw-r--r--usecaseui-portal/src/assets/images/execute-success.pngbin0 -> 1557 bytes
-rw-r--r--usecaseui-portal/src/assets/images/notificationmodel.pngbin0 -> 3340 bytes
-rw-r--r--usecaseui-portal/src/styles.less46
8 files changed, 78 insertions, 2 deletions
diff --git a/usecaseui-portal/src/app/services/onboard-vnf-vm/onboard-vnf-vm.component.ts b/usecaseui-portal/src/app/services/onboard-vnf-vm/onboard-vnf-vm.component.ts
index 75d39eb5..97299073 100644
--- a/usecaseui-portal/src/app/services/onboard-vnf-vm/onboard-vnf-vm.component.ts
+++ b/usecaseui-portal/src/app/services/onboard-vnf-vm/onboard-vnf-vm.component.ts
@@ -272,8 +272,7 @@ export class OnboardVnfVmComponent implements OnInit {
this.fileListNS = [];
this.fileListVNF = [];
this.fileListPNF = [];
- this.http
- .request(req)
+ this.http.request(req)
.pipe(filter(e => e instanceof HttpResponse))
.subscribe(
(event: {}) => {
diff --git a/usecaseui-portal/src/assets/i18n/en.json b/usecaseui-portal/src/assets/i18n/en.json
index fffaf6ec..b3b90e51 100644
--- a/usecaseui-portal/src/assets/i18n/en.json
+++ b/usecaseui-portal/src/assets/i18n/en.json
@@ -69,6 +69,22 @@
"i18nTextDefine_cause":"cause",
"i18nTextDefine_action":"action",
"i18nTextDefine_actionvminfo":"actionvminfo",
+ "i18nTextDefine_InstanceCreationStarting":"instance creation is starting.",
+ "i18nTextDefine_InstanceCreatedSuccessfully":"instance was created successfully.",
+ "i18nTextDefine_InstanceCreationFailed":"instance creation failed!!!",
+ "i18nTextDefine_InstanceTeminationStarting":"instance temination is starting.",
+ "i18nTextDefine_InstanceTeminatedSuccessfully":"instance was teminated successfully.",
+ "i18nTextDefine_InstanceTeminationFailed":" instance temination failed!!!",
+ "i18nTextDefine_InstanceScaleStarting":"instance scale is starting.",
+ "i18nTextDefine_InstanceScaledSuccessfully":"instance was scaled successfully.",
+ "i18nTextDefine_InstanceScaleFailed":"instance scale failed!!!",
+ "i18nTextDefine_InstanceHealingStarting":" instance healing is starting.",
+ "i18nTextDefine_InstanceHealedSuccessfully":"instance was healed successfully.",
+ "i18nTextDefine_InstanceHealingFailed":"instance healing failed!!!",
+ "i18nTextDefine_InstanceUpdateStarting":"instance update is starting.",
+ "i18nTextDefine_InstanceUpdatedSuccessfully":"instance was updated successfully.",
+ "i18nTextDefine_InstanceUpdateFailed":"instance update failed!!!",
+
"ccvpn-creation-component":"--:",
"i18nTextDefine_InstanceCreation":"Instance Creation",
diff --git a/usecaseui-portal/src/assets/i18n/zh.json b/usecaseui-portal/src/assets/i18n/zh.json
index 2743f8e3..208c932a 100644
--- a/usecaseui-portal/src/assets/i18n/zh.json
+++ b/usecaseui-portal/src/assets/i18n/zh.json
@@ -69,6 +69,21 @@
"i18nTextDefine_cause":"原因",
"i18nTextDefine_action":"动作",
"i18nTextDefine_actionvminfo":"操作虚拟机信息",
+ "i18nTextDefine_InstanceCreationStarting":"创建开始",
+ "i18nTextDefine_InstanceCreatedSuccessfully":"创建成功",
+ "i18nTextDefine_InstanceCreationFailed":"创建失败!",
+ "i18nTextDefine_InstanceTeminationStarting":"删除开始",
+ "i18nTextDefine_InstanceTeminatedSuccessfully":"删除成功",
+ "i18nTextDefine_InstanceTeminationFailed":" 删除失败",
+ "i18nTextDefine_InstanceScaleStarting":"缩扩容开始",
+ "i18nTextDefine_InstanceScaledSuccessfully":"缩扩容成功",
+ "i18nTextDefine_InstanceScaleFailed":"缩扩容失败",
+ "i18nTextDefine_InstanceHealingStarting":"自愈开始",
+ "i18nTextDefine_InstanceHealedSuccessfully":"自愈成功",
+ "i18nTextDefine_InstanceHealingFailed":"自愈失败",
+ "i18nTextDefine_InstanceUpdateStarting":"更新开始",
+ "i18nTextDefine_InstanceUpdatedSuccessfully":"更新成功",
+ "i18nTextDefine_InstanceUpdateFailed":"更新失败",
"ccvpn-creation-component":"--:",
"i18nTextDefine_InstanceCreation":"实例创建",
diff --git a/usecaseui-portal/src/assets/images/execute-faild.png b/usecaseui-portal/src/assets/images/execute-faild.png
new file mode 100644
index 00000000..91ab52fe
--- /dev/null
+++ b/usecaseui-portal/src/assets/images/execute-faild.png
Binary files differ
diff --git a/usecaseui-portal/src/assets/images/execute-inproess.png b/usecaseui-portal/src/assets/images/execute-inproess.png
new file mode 100644
index 00000000..6a1beb3b
--- /dev/null
+++ b/usecaseui-portal/src/assets/images/execute-inproess.png
Binary files differ
diff --git a/usecaseui-portal/src/assets/images/execute-success.png b/usecaseui-portal/src/assets/images/execute-success.png
new file mode 100644
index 00000000..36d67efd
--- /dev/null
+++ b/usecaseui-portal/src/assets/images/execute-success.png
Binary files differ
diff --git a/usecaseui-portal/src/assets/images/notificationmodel.png b/usecaseui-portal/src/assets/images/notificationmodel.png
new file mode 100644
index 00000000..315ed211
--- /dev/null
+++ b/usecaseui-portal/src/assets/images/notificationmodel.png
Binary files differ
diff --git a/usecaseui-portal/src/styles.less b/usecaseui-portal/src/styles.less
index 487d06d5..6bc9652c 100644
--- a/usecaseui-portal/src/styles.less
+++ b/usecaseui-portal/src/styles.less
@@ -723,4 +723,50 @@ nz-modal .healModel.ant-modal {
nz-modal .scaleModel.ant-modal {
height: 628px !important;
overflow: auto;
+}
+
+//2019.05.09 add notification model
+nz-notification-container .ant-notification{
+ width: 592px!important;
+ max-width: 592px!important;
+ background-image: url("assets/images/notificationmodel.png");
+ background-repeat: no-repeat;
+ opacity: 0.8;
+ nz-notification{
+ width: 100%!important;
+ opacity: 1!important;
+ color: #ffffff;
+ .ant-notification-notice{
+ width: 100%!important;
+ height: 140px !important;
+ background: rgba(255,255,255,0);
+ opacity: 1!important;
+ color: #ffffff;
+ .ant-notification-notice-content{
+ .ant-notification-notice-icon{}
+ .ant-notification-notice-message{
+ margin-left: 88px;
+ font-size: 18px;
+ color: #ffffff;
+ font-weight: 500;
+ }
+ .ant-notification-notice-description{
+ margin-left: 88px;
+ .notificationlist{
+ height: 25px;
+ line-height: 25px;
+ margin-bottom: 5px;
+ p,span{
+ display: inline-block;
+ margin-bottom: 0!important;
+ margin-right: 6px;
+ }
+ span{
+ color: #D9DEF1;
+ }
+ }
+ }
+ }
+ }
+ }
} \ No newline at end of file