From 786fdeaa0d83aeb012622c1e644a0a9ca0e7c1b0 Mon Sep 17 00:00:00 2001 From: "k.kedron" Date: Fri, 14 Jun 2019 16:06:05 +0200 Subject: Improve UX when user wants to add first MC. Add new button to import the MC directly. Update the information on the main label. Improve the css style. Issue-ID: SDC-2312 Signed-off-by: Krystian Kedron Change-Id: I31352e56fb032092dcbae209e6bae8af6d09ac6c --- public/src/app/home/home.component.html | 33 +++++++++++++++++++++++++-------- public/src/app/home/home.component.scss | 28 +++++++++++++++++++++++----- 2 files changed, 48 insertions(+), 13 deletions(-) diff --git a/public/src/app/home/home.component.html b/public/src/app/home/home.component.html index fe20ab6..6b7d6a9 100644 --- a/public/src/app/home/home.component.html +++ b/public/src/app/home/home.component.html @@ -11,6 +11,7 @@ height: 100%; display: flex; justify-content: center; + color: #00c100; align-items: center;" [innerHTML]="'download' | feather:20"> @@ -123,19 +124,35 @@
Monitoring Configuration does not Exist
-
+
A Monitoring Configuration (MC) was not yet created
Please create a new MC to monitor the service
-
- - -

Add First MC

-
+
+ Or import any existing VFCMT present +
+
+ in the DCAE-DS catalog as the MC +
+
+
+ + +

Add First MC

+
+
+
+ + +

Import MC

+
+
diff --git a/public/src/app/home/home.component.scss b/public/src/app/home/home.component.scss index 63d0544..890d463 100644 --- a/public/src/app/home/home.component.scss +++ b/public/src/app/home/home.component.scss @@ -1,16 +1,20 @@ @import '~@swimlane/ngx-datatable/release/themes/material.css'; + +$success-color-main: #5cb85c; +$success-color-hover: #9ed29e; +$primary-color-hover: #7bd0f1; + .home-container { display: flex; flex-direction: column; height: 100%; - margin: 15px 20px; - margin-left: 15px; - margin-right: 15px; - .wrapper-btn-add-mc { - margin-top: 46px; + margin: 15px; + + .wrapper-btn-mc { display: flex; flex-direction: column; align-items: center; + float: left; } .btn-create { width: 150px; @@ -18,6 +22,20 @@ } } +.mat-success { + background-color: $success-color-main; + border-color: #4cae4c; + color: #fff; +} + +button.mat-success:not([disabled]):hover { + background-color: $success-color-hover; +} + +button.mat-primary:not([disabled]):hover { + background-color: $primary-color-hover; +} + .my-confrim-dialog .mat-dialog-container { max-width: 600px; width: 500px; -- cgit 1.2.3-korg