created list selection modal component + logic
This commit is contained in:
1 parent
863f6bbf11
commit
ef920d14e7
4 files changed
+120
No files matched your search
@@ -0,0 +1,19 @@
|
||||
<h2 mat-dialog-title>Choose a list</h2>
|
||||
<mat-dialog-content>
|
||||
<mat-form-field appearance="fill">
|
||||
<mat-label>List Name</mat-label>
|
||||
<input [formControl]="searchControl" matInput>
|
||||
</mat-form-field>
|
||||
<mat-dialog-actions align="center" *ngIf="doShowAddButton()">
|
||||
<button mat-button (click)="createList()" *ngIf="doShowAddButton()">Create List</button>
|
||||
</mat-dialog-actions>
|
||||
<mat-selection-list #shoes>
|
||||
<mat-list-option *ngFor="let list of listsToShow" [value]="list">
|
||||
{{list.name}}
|
||||
</mat-list-option>
|
||||
</mat-selection-list>
|
||||
</mat-dialog-content>
|
||||
<mat-dialog-actions align="end">
|
||||
<button mat-button [mat-dialog-close]="true">OK</button>
|
||||
<button mat-button mat-dialog-close>Cancel</button>
|
||||
</mat-dialog-actions>
|
||||
Reference in new issue
Block a user