mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-28 23:50:59 +03:00
Added ability to set a pin for settings menu
This commit is contained in:
13
src/app/dialogs/set-pin-dialog/set-pin-dialog.component.html
Normal file
13
src/app/dialogs/set-pin-dialog/set-pin-dialog.component.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<h4 mat-dialog-title i18n="Set pin">Set pin</h4>
|
||||
|
||||
<mat-dialog-content>
|
||||
<mat-form-field color="accent">
|
||||
<mat-label i18n="Pin">Pin</mat-label>
|
||||
<input [(ngModel)]="pin" matInput onlyNumber required>
|
||||
</mat-form-field>
|
||||
</mat-dialog-content>
|
||||
|
||||
<mat-dialog-actions>
|
||||
<button mat-button mat-dialog-close i18n="Cancel">Cancel</button>
|
||||
<button mat-button [disabled]="!pin" (click)="setPin()"><ng-container i18n="Set pin button">Set pin</ng-container></button>
|
||||
</mat-dialog-actions>
|
||||
Reference in New Issue
Block a user