<div class="col-md-12">
<label class="dl-h3" *ngIf="this.tempDb.name==undefined">{{ "NewDashboard" | translate}}</label>
<label class="dl-h3" style="letter-spacing: 0" *ngIf="this.tempDb.name!=undefined">{{this.tempDb.name}}</label>
+ <i class="fas fa-plus fa-2x close-btn-icon" (click)="activeModal.close('Close click')"></i>
</div>
</div>
<div class="col-md-3"><label class="dl-emphasis1" for="inputHost">{{ "HOST" | translate}}</label></div>
<div class="col-md-4">
<input [(ngModel)]="this.tempDb.host" class="form-control dl-input-text" id="inputHost" type="text"
- placeholder="{{ 'InputValue' | translate}}" [disabled]="!this.tempDb.enabled" [attr.disabled]='!this.tempDb.enabled?true:undefined'>
+ placeholder="{{ 'InputValue' | translate}}" >
</div>
</div>
</div>
<div class="col-md-3"><label class="dl-emphasis1" for="inputPort">{{ "PORT" | translate}}</label></div>
<div class="col-md-3">
<input [(ngModel)]="this.tempDb.port" class="form-control dl-input-text" id="inputPort" type="text"
- placeholder="{{ 'InputValue' | translate}}" (input)="this.adminService.onKeyPressNumber($event)" [disabled]="!this.tempDb.enabled" [attr.disabled]='!this.tempDb.enabled?true:undefined'>
+ placeholder="{{ 'InputValue' | translate}}" (input)="this.adminService.onKeyPressNumber($event)" >
</div>
</div>
</div>
for="inputUserName">{{ "AUTHENTICATION" | translate}}</label></div>
<div class="col-sm-4">
<input [(ngModel)]="this.tempDb.login" class="form-control dl-input-text" id="inputUserName" type="text"
- placeholder="{{ 'Username' | translate}}" [disabled]="!this.tempDb.enabled" [attr.disabled]='!this.tempDb.enabled?true:undefined'>
+ placeholder="{{ 'Username' | translate}}" >
</div>
<div class="col-sm-4">
<input [(ngModel)]="this.tempDb.pass" class="form-control dl-input-text" id="inputPass" type="password"
- placeholder=" {{ 'Password' | translate}}" [disabled]="!this.tempDb.enabled" [attr.disabled]='!this.tempDb.enabled?true:undefined'>
+ placeholder=" {{ 'Password' | translate}}" >
</div>
</div>
</div>
) {
// 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;
});
}
- ngOnInit() {
- this.spinner.show();
- }
-
-
async initData() {
this.dbList = [];
this.dbList = await this.getDbList();
res => {
console.log(res);
if (res.statusCode == 200) {
- this.initData();
+ this.initList();
this.notificationService.success("SUCCESSFULLY_UPDATED");
} else {
this.notificationService.error("FAILED_UPDATED");
res => {
console.log(res);
if (res.statusCode == 200) {
- this.initData();
+ this.initList();
this.notificationService.success("SUCCESSFULLY_DELETED");
} else {
this.dbs[thisIndex].enabled = true;
.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 {
.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;
+}
+