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