group detail, members none case-sensitive sorted a to z

This commit is contained in:
Sylvain MATHIEU 2022-01-04 15:43:04 +01:00
parent fb7845bbce
commit b8b7e4d151
3 changed files with 16 additions and 2 deletions

View File

@ -27,7 +27,9 @@
<mat-divider [vertical]="true"></mat-divider>
<div class="members">
<div>
<div class="title"> Members:</div>
<div class="title">
<div>Members: </div>
</div>
<mat-icon (click)="openAddUserDialog()" class="clickable">person_add</mat-icon>
</div>
<div class="search">

View File

@ -49,7 +49,7 @@ export class GroupDetailsComponent implements OnInit {
this.server = d.group.server;
this.group = d.group.group;
this.members = d.group.users;
this.members = d.group.users.sort((a: User, b: User) => a.username.toLowerCase().localeCompare(b.username.toLowerCase()));
this.editGroupForm.setValue({groupname: this.group.name});
});

View File

@ -1,3 +1,15 @@
/*
* Software Name : GNS3 Web UI
* Version: 3
* SPDX-FileCopyrightText: Copyright (c) 2022 Orange Business Services
* SPDX-License-Identifier: GPL-3.0-or-later
*
* This software is distributed under the GPL-3.0 or any later version,
* the text of which is available at https://www.gnu.org/licenses/gpl-3.0.txt
* or see the "LICENSE" file for more details.
*
* Author: Sylvain MATHIEU, Elise LEBEAU
*/
import {Pipe, PipeTransform} from '@angular/core';
import {User} from "@models/users/user";