mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-24 05:03:19 +03:00
New checkbox to select streaming only mode when subscribing
This commit is contained in:
@@ -29,6 +29,9 @@
|
|||||||
</mat-option>
|
</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<mat-checkbox [(ngModel)]="streamingOnlyMode">Streaming-only mode</mat-checkbox>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</mat-dialog-content>
|
</mat-dialog-content>
|
||||||
@@ -36,7 +39,7 @@
|
|||||||
<mat-dialog-actions>
|
<mat-dialog-actions>
|
||||||
<button mat-button mat-dialog-close><ng-container i18n="Subscribe cancel button">Cancel</ng-container></button>
|
<button mat-button mat-dialog-close><ng-container i18n="Subscribe cancel button">Cancel</ng-container></button>
|
||||||
<!-- The mat-dialog-close directive optionally accepts a value as a result for the dialog. -->
|
<!-- The mat-dialog-close directive optionally accepts a value as a result for the dialog. -->
|
||||||
<button mat-button [disabled]="!url" type="submit" (click)="subscribeClicked()">Subscribe</button>
|
<button mat-button [disabled]="!url" type="submit" (click)="subscribeClicked()"><ng-container i18n="Subscribe button">Subscribe</ng-container></button>
|
||||||
<div class="mat-spinner" *ngIf="subscribing">
|
<div class="mat-spinner" *ngIf="subscribing">
|
||||||
<mat-spinner [diameter]="25"></mat-spinner>
|
<mat-spinner [diameter]="25"></mat-spinner>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -19,6 +19,9 @@ export class SubscribeDialogComponent implements OnInit {
|
|||||||
// state
|
// state
|
||||||
subscribing = false;
|
subscribing = false;
|
||||||
|
|
||||||
|
// no videos actually downloaded, just streamed
|
||||||
|
streamingOnlyMode = false;
|
||||||
|
|
||||||
time_units = [
|
time_units = [
|
||||||
'day',
|
'day',
|
||||||
'week',
|
'week',
|
||||||
|
|||||||
Reference in New Issue
Block a user