ocket8888 commented on code in PR #6928:
URL: https://github.com/apache/trafficcontrol/pull/6928#discussion_r922283112
##########
experimental/traffic-portal/src/app/core/users/users.component.html:
##########
@@ -25,3 +25,17 @@
</tp-generic-table>
<div id="loading" *ngIf="loading"><tp-loading></tp-loading></div>
</mat-card>
+
+<button class="expandable-fab" type="button"
(cdkMenuClosed)="toggleMenu('closed')" (cdkMenuOpened)="toggleMenu('opened')"
mat-fab [cdkMenuTriggerFor]="menu" aria-label="Add a user" title="Add a user">
+ <mat-icon [ngClass]="{'open': menuIsOpen}">add</mat-icon>
+</button>
+<ng-template #menu>
+ <menu @fadeInOut @slideInOut cdkMenu>
+ <a *ngIf="canCreateUsers()" cdkMenuItem routerLink="new"
color="accent" mat-mini-fab aria-label="Create user from scratch" title="Create
user from scratch">
+ <mat-icon>person_add</mat-icon>
+ </a>
+ <button cdkMenuItem color="accent" mat-mini-fab disabled>
Review Comment:
eh. It doesn't actually do anything yet, so technically a blank label is
accurate. My user registration branch adds an `aria-label` and a `title`. But
I'll add one here; it's really easy to do and shouldn't cause much in the way
of rebase conflicts.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]