Skip to content
Snippets Groups Projects
Commit 6e16bf0d authored by Guillaume Heurtier's avatar Guillaume Heurtier
Browse files

FIX #14795 TIME 2:20 fix import/edit buttons in document template admin

parent 6a0b7b03
No related branches found
No related tags found
No related merge requests found
...@@ -163,11 +163,10 @@ ...@@ -163,11 +163,10 @@
</mat-form-field> </mat-form-field>
<button mat-raised-button color="default" type="button" <button mat-raised-button color="default" type="button"
(click)="$event.stopPropagation();editFile()" (click)="$event.stopPropagation();editFile()"
*ngIf="((creationMode && selectedModelFile) || (!creationMode))" *ngIf="((this.creationMode && this.selectedModelFile && this.headerService.user.preferences.documentEdition !== 'java') || (!this.creationMode))"
[disabled]="lockFound">{{'lang.templateEdition' | translate}}</button> [disabled]="lockFound">{{'lang.templateEdition' | translate}}</button>
<button mat-raised-button color="default" type="button" <button mat-raised-button color="default" type="button"
(click)="$event.stopPropagation();uploadSignFileOffice.click()" (click)="$event.stopPropagation();uploadSignFileOffice.click()"
*ngIf="((creationMode && !selectedModelFile) || (!creationMode && !functionsService.empty(template.file.name)) && headerService.user.preferences.documentEdition !== 'java')"
[disabled]="lockFound">{{'lang.importFile' | translate}}</button> [disabled]="lockFound">{{'lang.importFile' | translate}}</button>
</div> </div>
<iframe *ngIf="templateDocView !== null" [src]="templateDocView" <iframe *ngIf="templateDocView !== null" [src]="templateDocView"
...@@ -262,11 +261,10 @@ ...@@ -262,11 +261,10 @@
</mat-form-field> </mat-form-field>
<button mat-raised-button color="default" type="button" <button mat-raised-button color="default" type="button"
(click)="$event.stopPropagation();editFile()" (click)="$event.stopPropagation();editFile()"
*ngIf="((creationMode && selectedModelFile) || (!creationMode && !functionsService.empty(template.file.paper.name)))" *ngIf="((this.creationMode && this.selectedModelFile && this.headerService.user.preferences.documentEdition !== 'java') || (!this.creationMode))"
[disabled]="lockFound">{{'lang.templateEdition' | translate}}</button> [disabled]="lockFound">{{'lang.templateEdition' | translate}}</button>
<button mat-raised-button color="default" type="button" <button mat-raised-button color="default" type="button"
(click)="$event.stopPropagation();uploadSignFileOfficeHtml.click()" (click)="$event.stopPropagation();uploadSignFileOfficeHtml.click()"
*ngIf="!selectedModelFile || (!creationMode && headerService.user.preferences.documentEdition !== 'java')"
[disabled]="lockFound">{{'lang.importFile' | translate}}</button> [disabled]="lockFound">{{'lang.importFile' | translate}}</button>
</div> </div>
<iframe *ngIf="templateDocView !== null" [src]="templateDocView" <iframe *ngIf="templateDocView !== null" [src]="templateDocView"
......
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