mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Requested changes
Requested changes https://github.com/jellyfin/jellyfin-web/pull/3631#discussion_r871799701 https://github.com/jellyfin/jellyfin-web/pull/3631#discussion_r871800253 https://github.com/jellyfin/jellyfin-web/pull/3631#discussion_r871800701
This commit is contained in:
parent
178cef0d91
commit
8a2e2af2eb
4 changed files with 2 additions and 16 deletions
|
@ -42,9 +42,6 @@ import ServerConnections from '../ServerConnections';
|
||||||
|
|
||||||
return name.toUpperCase();
|
return name.toUpperCase();
|
||||||
}
|
}
|
||||||
if (sortBy.indexOf('random') === 0) {
|
|
||||||
return Math.random(item.Random);
|
|
||||||
}
|
|
||||||
if (sortBy.indexOf('officialrating') === 0) {
|
if (sortBy.indexOf('officialrating') === 0) {
|
||||||
return item.OfficialRating || globalize.translate('Unrated');
|
return item.OfficialRating || globalize.translate('Unrated');
|
||||||
}
|
}
|
||||||
|
|
|
@ -1070,17 +1070,6 @@ class ItemsView {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
getPlayCountSortOption() {
|
|
||||||
if (this.params.type === 'Programs') {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
|
||||||
name: globalize.translate('Random'),
|
|
||||||
value: 'Random,SortName'
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
getPlayCountSortOption() {
|
getPlayCountSortOption() {
|
||||||
if (this.params.type === 'Programs') {
|
if (this.params.type === 'Programs') {
|
||||||
return null;
|
return null;
|
||||||
|
|
|
@ -198,7 +198,7 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
||||||
name: globalize.translate('Name'),
|
name: globalize.translate('Name'),
|
||||||
id: 'SortName,ProductionYear'
|
id: 'SortName,ProductionYear'
|
||||||
}, {
|
}, {
|
||||||
name: globalize.translate('Random'),
|
name: globalize.translate('OptionRandom'),
|
||||||
id: 'Random'
|
id: 'Random'
|
||||||
}, {
|
}, {
|
||||||
name: globalize.translate('OptionImdbRating'),
|
name: globalize.translate('OptionImdbRating'),
|
||||||
|
|
|
@ -253,7 +253,7 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
||||||
name: globalize.translate('Name'),
|
name: globalize.translate('Name'),
|
||||||
id: 'SortName'
|
id: 'SortName'
|
||||||
}, {
|
}, {
|
||||||
name: globalize.translate('Random'),
|
name: globalize.translate('OptionRandom'),
|
||||||
id: 'Random'
|
id: 'Random'
|
||||||
}, {
|
}, {
|
||||||
name: globalize.translate('OptionImdbRating'),
|
name: globalize.translate('OptionImdbRating'),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue