add appApiAction to username generation (#2549)
This commit is contained in:
parent
c7cd864524
commit
5e731fb328
|
@ -43,7 +43,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="generated-block" *ngIf="type === 'username'">
|
<div class="generated-block" *ngIf="type === 'username'">
|
||||||
<div class="generated-wrapper" [innerHTML]="username | colorPassword" appSelectCopy></div>
|
<div class="generated-wrapper" [innerHTML]="username | colorPassword" appSelectCopy></div>
|
||||||
<div class="action-buttons">
|
<div class="action-buttons" #form [appApiAction]="usernameGeneratingPromise">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
class="row-btn"
|
class="row-btn"
|
||||||
|
@ -59,8 +59,13 @@
|
||||||
appBlurClick
|
appBlurClick
|
||||||
appA11yTitle="{{ 'regenerateUsername' | i18n }}"
|
appA11yTitle="{{ 'regenerateUsername' | i18n }}"
|
||||||
(click)="regenerate()"
|
(click)="regenerate()"
|
||||||
|
[disabled]="form.loading"
|
||||||
>
|
>
|
||||||
<i class="bwi bwi-lg bwi-generate" aria-hidden="true"></i>
|
<i
|
||||||
|
class="bwi bwi-lg bwi-generate"
|
||||||
|
[ngClass]="form.loading ? 'bwi-spin' : ''"
|
||||||
|
aria-hidden="true"
|
||||||
|
></i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue