2 ~ Licensed to the Apache Software Foundation (ASF) under one
3 ~ or more contributor license agreements. See the NOTICE file
4 ~ distributed with this work for additional information
5 ~ regarding copyright ownership. The ASF licenses this file
6 ~ to you under the Apache License, Version 2.0 (the
7 ~ "License"); you may not use this file except in compliance
8 ~ with the License. You may obtain a copy of the License at
10 ~ http://www.apache.org/licenses/LICENSE-2.0
11 ~ Unless required by applicable law or agreed to in writing,
12 ~ software distributed under the License is distributed on an
13 ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 ~ KIND, either express or implied. See the License for the
15 ~ specific language governing permissions and limitations
19 <app-paginated-entities [service]="service" pageSize="10" [(sortField)]="sortField" [(sortOrder)]="sortOrder"
21 <ng-container *ngIf="parent.items$ |async as roleItemLoader" >
22 <ng-template [ngIf]="roleItemLoader.loading" #spinner let-modal>
23 <div class="fixed-top d-flex justify-content-center mt-5 pt-5">
24 <div class="spinner-border text-info mt-5" role="status">
25 <span class="sr-only">Loading...</span>
30 <ng-container *ngIf="parent.items$ |stripLoading|async as propertyItem" >
31 <table class="table table-striped table-bordered">
32 <thead class="thead-light">
33 <tr sorted [sortFieldEmitter]="parent.sortFieldChange" [sortOrderEmitter]="parent.sortOrderChange"
34 [toggleObserver]="parent">
35 <app-th-sorted [fieldArray]="['key']" contentText="security.config.properties.attributes.key"></app-th-sorted>
36 <app-th-sorted [fieldArray]="['value']" contentText="security.config.properties.attributes.value"></app-th-sorted>
37 <th>{{'headers.action' |translate}}</th>
41 <tr *ngFor="let propertyEntry of propertyItem.data" >
42 <td>{{propertyEntry.key}}</td>
43 <td *ngIf="isEdit(propertyEntry.key)"><input class="form-control" type="text" [(ngModel)]="propertyValue"></td>
44 <td *ngIf="!isEdit(propertyEntry.key)">{{propertyEntry.value}}</td>
46 <a [routerLink]="" (click)="toggleEditProperty(propertyEntry)"
47 [attr.title]="'security.config.properties.edit' |translate"><span class="fas fa-edit"></span></a>
54 </app-paginated-entities>