mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-08 13:21:28 +03:00
Added ability to generate RSS feed URLs from the UI
Moved property sorting into its own component
This commit is contained in:
@@ -303,7 +303,8 @@
|
||||
<h6>RSS Feed</h6>
|
||||
<mat-checkbox color="accent" [(ngModel)]="new_config['Extra']['enable_rss_feed']" ><ng-container i18n="Enable RSS Feed setting">Enable RSS Feed</ng-container></mat-checkbox>
|
||||
<p><ng-container i18n="RSS Feed prefix">Be careful enabling this with multi-user mode! User data may be exposed.</ng-container></p>
|
||||
<p><a target="_blank" href="https://github.com/Tzahi12345/YoutubeDL-Material/wiki/RSS-Feed"><ng-container i18n="RSS feed documentation">See documentation here.</ng-container></a></p>
|
||||
<button mat-stroked-button (click)="openGenerateRSSURLDialog()" [disabled]="!new_config['Extra']['enable_rss_feed']" i18n="Generate RSS URL">Generate RSS URL</button>
|
||||
<p style="margin-top: 12px;"><a target="_blank" href="https://github.com/Tzahi12345/YoutubeDL-Material/wiki/RSS-Feed"><ng-container i18n="RSS feed documentation">See documentation here.</ng-container></a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -14,6 +14,7 @@ import { InputDialogComponent } from 'app/input-dialog/input-dialog.component';
|
||||
import { EditCategoryDialogComponent } from 'app/dialogs/edit-category-dialog/edit-category-dialog.component';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { Category } from 'api-types';
|
||||
import { GenerateRssUrlComponent } from 'app/dialogs/generate-rss-url/generate-rss-url.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-settings',
|
||||
@@ -366,4 +367,11 @@ export class SettingsComponent implements OnInit {
|
||||
this.postsService.openSnackBar($localize`Connection failed! Error: Server error. See logs for more info.`);
|
||||
});
|
||||
}
|
||||
|
||||
openGenerateRSSURLDialog(): void {
|
||||
this.dialog.open(GenerateRssUrlComponent, {
|
||||
width: '80vw',
|
||||
maxWidth: '880px'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user