1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 01:39:37 +02:00

Force to choose a channel to reorder playlists

This commit is contained in:
Chocobozzz 2025-08-27 16:47:13 +02:00
parent 42bf34c29a
commit 3d75a7288f
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 9 additions and 11 deletions

View file

@ -1,15 +1,13 @@
@if (user.videoChannels.length > 1) { <div class="form-group">
<div class="form-group"> <div class="label" i18n>Filter by a channel</div>
<div class="label" i18n>Filter by a channel</div> <div class="form-group-description" i18n>This allows you to reorder playlists assigned to it</div>
<div class="form-group-description" i18n>This allows you to reorder playlists assigned to it</div>
<div class="channel-filters"> <div class="channel-filters">
@for (channel of channels; track channel.id) { @for (channel of channels; track channel.id) {
<my-channel-toggle [channel]="channel" [(ngModel)]="channel.selected" (ngModelChange)="onChannelFilter(channel)"></my-channel-toggle> <my-channel-toggle [channel]="channel" [(ngModel)]="channel.selected" (ngModelChange)="onChannelFilter(channel)"></my-channel-toggle>
} }
</div>
</div> </div>
} </div>
<my-table <my-table
#table #table

View file

@ -212,7 +212,7 @@ export class MyVideoPlaylistsComponent implements OnInit, OnDestroy {
} }
hasReorderableRows () { hasReorderableRows () {
return !!this.getFilteredChannel() || this.user.videoChannels.length === 1 return !!this.getFilteredChannel()
} }
private _dataLoader (options: { private _dataLoader (options: {