Added admin field in management page
This commit is contained in:
@@ -13,15 +13,17 @@
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ translations.name }}</th>
|
||||
<th>{{translations.username}}</th>
|
||||
<th>{{ translations.username }}</th>
|
||||
<th>{{translations.password}}</th>
|
||||
<th>admin</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr *ngFor="let user of users">
|
||||
<td>{{ user.username }}</td>
|
||||
<td>{{ user.password }}</td>
|
||||
<td *ngIf="user.admin==false">No</td>
|
||||
<td *ngIf="user.admin==true">Yes</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@@ -117,6 +117,8 @@ export class ManagementComponent implements OnInit {
|
||||
}
|
||||
|
||||
async switchLanguage(lang: string) {
|
||||
|
||||
// Man
|
||||
this.translations.users = await this.translateService.getData(this.translations.users, lang);
|
||||
this.translations.locations = await this.translateService.getData(this.translations.locations, lang);
|
||||
this.translations.waypoints = await this.translateService.getData(this.translations.waypoints, lang);
|
||||
|
||||
Reference in New Issue
Block a user