mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add suggested changes
This commit is contained in:
parent
59b3159de1
commit
aba10a095c
1 changed files with 2 additions and 1 deletions
|
@ -13,6 +13,7 @@ import { LibraryTab } from 'types/libraryTab';
|
||||||
import { getBackdropShape } from 'utils/card';
|
import { getBackdropShape } from 'utils/card';
|
||||||
import Dashboard from 'utils/dashboard';
|
import Dashboard from 'utils/dashboard';
|
||||||
import Events from 'utils/events';
|
import Events from 'utils/events';
|
||||||
|
import { CollectionType } from '@jellyfin/sdk/lib/generated-client/models/collection-type';
|
||||||
|
|
||||||
import 'elements/emby-itemscontainer/emby-itemscontainer';
|
import 'elements/emby-itemscontainer/emby-itemscontainer';
|
||||||
import 'elements/emby-button/emby-button';
|
import 'elements/emby-button/emby-button';
|
||||||
|
@ -332,7 +333,7 @@ export default function (view, params) {
|
||||||
function onInputCommand(e) {
|
function onInputCommand(e) {
|
||||||
if (e.detail.command === 'search') {
|
if (e.detail.command === 'search') {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
Dashboard.navigate('search.html?collectionType=tvshows&parentId=' + params.topParentId);
|
Dashboard.navigate(`search.html?collectionType=${CollectionType.TvShows}&parentId=${params.topParentId}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue