-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NAE-2010] Issue with displaying the Create Case button and non-funct…
…ional language switching in the toolbar - fix
- Loading branch information
1 parent
b614674
commit bc426be
Showing
3 changed files
with
26 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 16 additions & 7 deletions
23
...ts/src/lib/view/case-view/components/create-case-button/create-case-button.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
<button *ngIf="!resolvedCaseButtonTitle; else titleButton" class="create-case-mat-mini-fab" mat-mini-fab color="primary" (click)="createNewCase()" [class.spinner]="loading$ | async" | ||
[disabled]="(loading$ | async) || disabled"> | ||
<mat-icon *ngIf="(loading$ | async) === false" class="net-upload" aria-hidden="false">{{!!resolvedCaseButtonIcon ? resolvedCaseButtonIcon : 'add'}}</mat-icon> | ||
<!-- Button without title --> | ||
<button *ngIf="!resolvedCaseButtonTitle && shouldShowCreateButton(); else titleButton" class="create-case-mat-mini-fab" | ||
mat-mini-fab color="primary" (click)="createNewCase()" | ||
[class.spinner]="loading$ | async" [disabled]="(loading$ | async) || disabled"> | ||
<mat-icon *ngIf="(loading$ | async) === false" class="net-upload" aria-hidden="false"> | ||
{{ !!resolvedCaseButtonIcon ? resolvedCaseButtonIcon : 'add' }} | ||
</mat-icon> | ||
</button> | ||
|
||
<!-- Button with title --> | ||
<ng-template #titleButton> | ||
<button mat-flat-button class="height-44" color="primary" (click)="createNewCase()" [class.spinner]="loading$ | async" | ||
[disabled]="(loading$ | async) || disabled"> | ||
<mat-icon *ngIf="!!resolvedCaseButtonIcon && (loading$ | async) === false" class="button-icon" aria-hidden="false">{{resolvedCaseButtonIcon}}</mat-icon> | ||
<span *ngIf="(loading$ | async) === false">{{resolvedCaseButtonTitle}}</span> | ||
<button *ngIf="shouldShowCreateButton()" mat-flat-button class="height-44" color="primary" (click)="createNewCase()" | ||
[class.spinner]="loading$ | async" [disabled]="(loading$ | async) || disabled"> | ||
<mat-icon *ngIf="!!resolvedCaseButtonIcon && (loading$ | async) === false" class="button-icon" | ||
aria-hidden="false"> | ||
{{ resolvedCaseButtonIcon }} | ||
</mat-icon> | ||
<span *ngIf="(loading$ | async) === false">{{ resolvedCaseButtonTitle }}</span> | ||
</button> | ||
</ng-template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters