Commit 889606d1 authored by François Agneray's avatar François Agneray
Browse files

Change the property name label by role (group)

parent fd288571
Pipeline #3632 passed with stages
in 7 minutes and 18 seconds
<form name="form" (ngSubmit)="f.form.valid && emit(f.form.value)" #f="ngForm" novalidate>
<div class="form-group">
<label for="label">Label</label>
<input type="text" class="form-control" name="label" [ngModel]="model.label" #label="ngModel" required>
<label for="role">Role</label>
<input type="text" class="form-control" name="role" [ngModel]="model.role" required>
<div class="form-group">
<div class="form-row h-100">
......@@ -24,7 +24,7 @@ export class FormGroupComponent implements OnChanges {
emit(group: Group) {
label: group.label,
role: group.role,
instance_name: this.model.instance_name,
datasets: this.groupDatasets
......@@ -16,7 +16,7 @@
<th scope="col">ID</th>
<th scope="col">Label</th>
<th scope="col">Role</th>
<th scope="col">Datasets</th>
<th scope="col">Actions</th>
......@@ -24,7 +24,7 @@
<tr *ngFor="let group of groupList">
<td class="align-middle">{{ }}</td>
<td class="align-middle">{{ group.label }}</td>
<td class="align-middle">{{ group.role }}</td>
<td class="align-middle">
<span *ngIf="getDatasetsLenght(group) < 1" class="badge badge-pill badge-warning">
......@@ -54,7 +54,7 @@
<h4 class="modal-title pull-left">Confirm</h4>
<div class="modal-body">
<p>Are you sure you want to delete this group : <strong>{{ groupForDel.label }}</strong> ?</p>
<p>Are you sure you want to delete this group : <strong>{{ groupForDel.role }}</strong> ?</p>
<button (click)="modalRef.hide()" class="btn btn-default">No</button>
......@@ -16,7 +16,7 @@
<li *ngIf="groupListIsLoaded | async" class="breadcrumb-item active" aria-current="page">Edit group {{ (group | async).label }}</li>
<li *ngIf="groupListIsLoaded | async" class="breadcrumb-item active" aria-current="page">Edit group {{ (group | async).role }}</li>
export class Group {
id: number;
label: string;
role: string;
instance_name: string;
datasets: string[];
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment