From 97463301a6a3524a06d044dd7abdba14de06387c Mon Sep 17 00:00:00 2001 From: cyuamber Date: Thu, 20 Jun 2019 10:41:14 +0800 Subject: Dashboard-list interface Function modification Change-Id: I00f3c5511dc35ff697a0983e8e297a6fcdd505fa Issue-ID: DCAEGEN2-1624 Signed-off-by: cyuamber --- .../create-dashboard/create-dashboard.component.html | 9 +++++---- .../create-dashboard/create-dashboard.component.ts | 2 +- .../dashboard-list/dashboard-list.component.ts | 18 ++++++++++-------- components/datalake-handler/admin/src/src/styles.css | 17 +++++++++++++++-- 4 files changed, 31 insertions(+), 15 deletions(-) diff --git a/components/datalake-handler/admin/src/src/app/dashboard-setting/dashboard-list/create-dashboard/create-dashboard.component.html b/components/datalake-handler/admin/src/src/app/dashboard-setting/dashboard-list/create-dashboard/create-dashboard.component.html index 8996fce9..5fdc45a1 100644 --- a/components/datalake-handler/admin/src/src/app/dashboard-setting/dashboard-list/create-dashboard/create-dashboard.component.html +++ b/components/datalake-handler/admin/src/src/app/dashboard-setting/dashboard-list/create-dashboard/create-dashboard.component.html @@ -21,6 +21,7 @@
+
@@ -52,7 +53,7 @@
+ placeholder="{{ 'InputValue' | translate}}" >
@@ -62,7 +63,7 @@
+ placeholder="{{ 'InputValue' | translate}}" (input)="this.adminService.onKeyPressNumber($event)" >
@@ -73,11 +74,11 @@ for="inputUserName">{{ "AUTHENTICATION" | translate}}
+ placeholder="{{ 'Username' | translate}}" >
+ placeholder=" {{ 'Password' | translate}}" >
diff --git a/components/datalake-handler/admin/src/src/app/dashboard-setting/dashboard-list/create-dashboard/create-dashboard.component.ts b/components/datalake-handler/admin/src/src/app/dashboard-setting/dashboard-list/create-dashboard/create-dashboard.component.ts index 4a865f21..991826cc 100644 --- a/components/datalake-handler/admin/src/src/app/dashboard-setting/dashboard-list/create-dashboard/create-dashboard.component.ts +++ b/components/datalake-handler/admin/src/src/app/dashboard-setting/dashboard-list/create-dashboard/create-dashboard.component.ts @@ -65,7 +65,7 @@ export class CreateDashboardComponent implements OnInit { passBack() { - if(this.tempDb.host == '' || this.tempDb.host == undefined){ + if(this.tempDb.host == null && this.tempDb.port == null && this.tempDb.login == null && this.tempDb.pass == null){ return false; } this.dashboard = this.tempDb; diff --git a/components/datalake-handler/admin/src/src/app/dashboard-setting/dashboard-list/dashboard-list.component.ts b/components/datalake-handler/admin/src/src/app/dashboard-setting/dashboard-list/dashboard-list.component.ts index 97bda850..8bb4126c 100644 --- a/components/datalake-handler/admin/src/src/app/dashboard-setting/dashboard-list/dashboard-list.component.ts +++ b/components/datalake-handler/admin/src/src/app/dashboard-setting/dashboard-list/dashboard-list.component.ts @@ -56,7 +56,14 @@ export class DashboardListComponent implements OnInit { ) { // Set page title this.adminService.setTitle("SIDEBAR.DASHBOARDLIST"); - // this.getName(); + this.initList(); + + } + + ngOnInit() { + this.spinner.show(); + } + initList(){ this.initData().then(data => { this.initDbsList(this.dbList).then(data => { this.dbs = data; @@ -65,11 +72,6 @@ export class DashboardListComponent implements OnInit { }); } - ngOnInit() { - this.spinner.show(); - } - - async initData() { this.dbList = []; this.dbList = await this.getDbList(); @@ -124,7 +126,7 @@ export class DashboardListComponent implements OnInit { res => { console.log(res); if (res.statusCode == 200) { - this.initData(); + this.initList(); this.notificationService.success("SUCCESSFULLY_UPDATED"); } else { this.notificationService.error("FAILED_UPDATED"); @@ -141,7 +143,7 @@ export class DashboardListComponent implements OnInit { res => { console.log(res); if (res.statusCode == 200) { - this.initData(); + this.initList(); this.notificationService.success("SUCCESSFULLY_DELETED"); } else { this.dbs[thisIndex].enabled = true; diff --git a/components/datalake-handler/admin/src/src/styles.css b/components/datalake-handler/admin/src/src/styles.css index 33af86db..9feefc91 100644 --- a/components/datalake-handler/admin/src/src/styles.css +++ b/components/datalake-handler/admin/src/src/styles.css @@ -370,8 +370,8 @@ hr { .dl-input-text:disabled, .dl-input-text[readonly] { - background-color: #ffffff; - opacity: 1; + background-color: rgba(233, 236, 239, 0.5); + /*opacity: 1;*/ } .input-group-text { @@ -618,3 +618,16 @@ ngb-modal-window.templatess .modal-dialog-centered { .falsecheck{ color:#BDBEC0 } +input::-webkit-input-placeholder{ +color:#313032!important; +} +:-moz-placeholder{ + color: #313032 !important; +} +::-moz-placeholder{ + color: #313032 !important; +} +:-ms-input-placeholder{ + color: #313032 !important; +} + -- cgit 1.2.3-korg