Skip to content

Commit 35db6f0

Browse files
committed
Issue #554 - Risolto visualizzazione Elenco Ruoli
1 parent 32d1eaa commit 35db6f0

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

wars/web-console/src/main/angular/console/src/app/elements/list-view/list-view.component.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="row list-flexible">
44
<link-form-view #fv class="col-12 col-md-4 py-3 h-100 d-block" *ngIf="_isVisible()" [fields]="_fields"
55
(submit-form-data)="_formSubmit($event)"></link-form-view>
6-
<link-side-list #sl class="col py-3 w-100 h-100" [(is-loading-progress)]="_preventMultiCall"></link-side-list>
6+
<link-side-list #sl class="col py-3 w-100 h-100" [(is-loading-progress)]="_preventMultiCall" [has-form-view]="_showFormView"></link-side-list>
77
</div>
88
</div>
99
<button mat-icon-button [ngClass]="_cheatClass(cheat)" (click)="_toTop(cheat)"><mat-icon class="rotated">first_page</mat-icon></button>

wars/web-console/src/main/angular/console/src/app/elements/list-view/side-list.component.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export class SideListComponent implements OnInit, OnDestroy, IExport {
3030
@Input('enable-fab-actions') fabAction: boolean = false;
3131
@Input('enable-multi-fab-actions') multiFabAction: boolean = false;
3232
@Input('is-loading-progress') _isLoading: boolean = false;
33+
@Input('has-form-view') _hasFormView: boolean = true;
3334
@Output() _isLoadingChange: EventEmitter<boolean> = new EventEmitter();
3435

3536
protected rsc: any;
@@ -59,8 +60,11 @@ export class SideListComponent implements OnInit, OnDestroy, IExport {
5960
}).join('&');
6061
// Il load dei dati è demandato alla form di ricerca (form-view.component)
6162
// per poter gestire i filtri di default (attualemnte solo "Data da") configurabili
62-
// this.getList(_service, _dashboard_link_query);
63-
// this.loadMetadati(_service, _dashboard_link_query);
63+
// Eccezione per componenti che non hanno form di ricerca
64+
if (!this._hasFormView) {
65+
this.getList(_service, _dashboard_link_query);
66+
this.loadMetadati(_service, _dashboard_link_query);
67+
}
6468
}
6569

6670
ngOnDestroy() {

0 commit comments

Comments
 (0)