Skip to content
Snippets Groups Projects
Commit 925e471a authored by Florian Azizian's avatar Florian Azizian
Browse files

FEAT #12331 TIME 0:30 hide folder and tag input if cannot edit metadatas

parent 903893b9
No related branches found
No related tags found
No related merge requests found
<form>
<input type="hidden" [formControl]="controlAutocomplete">
<mat-form-field floatLabel="never" class="input-form">
<mat-form-field floatLabel="never" class="input-form" *ngIf="!controlAutocomplete.disabled">
<mat-icon color="primary" class="fa fa-search" matPrefix style="padding-left: 20px;font-size: 15px;"></mat-icon>
<input type="text" #autoCompleteInput [placeholder]="lang.searchFolder" matInput [formControl]="myControl"
[matAutocomplete]="auto" (click)="$event.stopPropagation()" (focus)="resetAutocomplete()">
......@@ -24,7 +24,7 @@
<div class="itemList">
<mat-chip-list *ngIf="controlAutocomplete.value.length > 0" class="mat-chip-list-stacked itemChip" color="default">
<mat-chip *ngFor="let item of controlAutocomplete.value;let i=index" class="activeListAutocomplete"
color="default" [removable]="true" (removed)="removeItem(i)">
color="default" [removable]="!controlAutocomplete.disabled" (removed)="removeItem(i)">
<span style="display: flex;flex: 1;align-items: center;" [title]="this.valuesToDisplay[item]">
<i class="fa fa-folder-open" style="padding-right:5px;"></i>&nbsp;{{this.valuesToDisplay[item]}}
</span>
......
<form>
<input type="hidden" [formControl]="controlAutocomplete">
<mat-form-field floatLabel="never" class="input-form">
<mat-form-field floatLabel="never" class="input-form" *ngIf="!controlAutocomplete.disabled">
<mat-icon color="primary" class="fa fa-search" matPrefix style="padding-left: 20px;font-size: 15px;"></mat-icon>
<input type="text" #autoCompleteInput [placeholder]="lang.searchTag" matInput [formControl]="myControl"
[matAutocomplete]="auto" (click)="$event.stopPropagation()" (focus)="resetAutocomplete()" maxlength="128">
......@@ -24,7 +24,7 @@
<div class="itemList">
<mat-chip-list *ngIf="controlAutocomplete.value.length > 0" class="mat-chip-list-stacked itemChip" color="default">
<mat-chip *ngFor="let item of controlAutocomplete.value;let i=index" class="listAutocomplete"
color="default" [removable]="true" (removed)="removeItem(i)">
color="default" [removable]="!controlAutocomplete.disabled" (removed)="removeItem(i)">
<span style="display: flex;flex: 1;align-items: center;" [title]="this.valuesToDisplay[item]">
<i class="fa fa-tag" style="padding-right:5px;"></i>&nbsp;{{this.valuesToDisplay[item]}}
</span>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment