2 Copyright (C) 2019 CMCC, Inc. and others. All rights reserved.
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
8 http://www.apache.org/licenses/LICENSE-2.0
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
16 <div class="topic-list-panel">
18 <div class="col-md-12">
19 <div class="d-flex justify-content-end p-2">
22 <div class="input-group">
23 <input #searchText type="text" class="form-control dl-input-text-search" placeholder="Search..."
24 (keyup)="this.updateFilter($event.target.value)" />
25 <div class="input-group-append">
26 <button type="button" class="btn dl-btn-dark">
27 <i class="fa fa-search"></i>
35 <button class="btn dl-btn-dark" (click)="newDbModal();">
36 {{ "NEW_DB" | translate }}
44 <div class="col-md-12">
45 <ngx-datatable #mytemlate class="bootstrap" [rows]="dbList" [columnMode]="'force'" [headerHeight]="40"
46 [footerHeight]="40" [rowHeight]="50" [scrollbarV]="true" [scrollbarH]="true"
47 [loadingIndicator]="loadingIndicator" [messages]="mesgNoData" [limit]="10" (activate)="onActivate($event)">
48 <ngx-datatable-column [width]="100" name="{{ 'STATUS' | translate }}" prop="enabled"
49 headerClass="d-flex justify-content-center" cellClass="d-flex justify-content-center">
50 <ng-template let-row="row" ngx-datatable-cell-template>
51 <span *ngIf="row.enabled">
52 <i class="fas fa-circle dl-icon-enable fa-xs" aria-hidden="true"></i>
54 <span *ngIf="!row.enabled">
55 <i class="fas fa-circle dl-icon-disable fa-xs" aria-hidden="true"></i>
58 </ngx-datatable-column>
60 <ngx-datatable-column name="{{ 'TEMPLATE_NAME' | translate }}" prop="name"
61 headerClass="d-flex justify-content-center" cellClass="d-flex justify-content-center">
62 <ng-template let-row="row" ngx-datatable-cell-template>
63 <span>{{ row.name }}</span>
65 </ngx-datatable-column>
67 <ngx-datatable-column name="{{ 'DB_TYPE' | translate }}" prop="topic">
68 <ng-template let-row="row" ngx-datatable-cell-template>
69 <span>{{ row.dbTypeId }}</span>
71 </ngx-datatable-column>
73 <ngx-datatable-column name="" sortable="false" cellClass="d-flex justify-content-center">
74 <ng-template let-row="row" ngx-datatable-cell-template>
76 <button class="btn action-icon-setting" (click)="this.deleteDbModel(row.id);">
77 <i class="fas fa-trash-alt fa-xs"></i>
81 <button class="btn action-icon-setting" (click)="this.updateDbModel(row.id, row.dbTypeId);">
82 <i class="fas fa-cog fa-xs"></i>
86 </ngx-datatable-column>