Misc fixes

- Add albumlist filter fallback
- Fix grid view config section title
This commit is contained in:
jeffvli
2021-12-14 17:51:45 -08:00
parent 70c1fba882
commit a3e20d22cc
3 changed files with 4 additions and 4 deletions

View File

@@ -52,7 +52,7 @@ const AlbumList = () => {
const config = useAppSelector((state) => state.config);
const misc = useAppSelector((state) => state.misc);
const [isRefreshing, setIsRefreshing] = useState(false);
const [sortTypes, setSortTypes] = useState<any[]>();
const [sortTypes, setSortTypes] = useState<any[]>([]);
const [viewType, setViewType] = useState(settings.getSync('albumViewType'));
const [musicFolder, setMusicFolder] = useState(undefined);
const albumFilterPickerContainerRef = useRef(null);
@@ -256,7 +256,7 @@ const AlbumList = () => {
defaultValue={album.active.filter}
value={album.active.filter}
groupBy="role"
data={sortTypes}
data={sortTypes || ALBUM_SORT_TYPES}
disabledItemValues={
config.serverType === Server.Jellyfin ? ['frequent', 'recent'] : []
}

View File

@@ -187,7 +187,7 @@ const ListViewConfig = ({
config={{ option: columnListType, columnList }}
virtualized
/>
<p style={{ fontSize: 'smaller' }}>* Drag & drop rows to re-order</p>
<p style={{ fontSize: 'smaller' }}>* Drag & drop rows from the # column to re-order</p>
</StyledPanel>
</div>

View File

@@ -202,7 +202,7 @@ export const GridViewConfigPanel = ({ bordered }: any) => {
const config = useAppSelector((state) => state.config);
return (
<ConfigPanel header="Grid-View" bordered={bordered}>
<ConfigPanel header="Grid View" bordered={bordered}>
<ConfigOption
name="Card Size"
description="The width and height in pixels (px) of each grid view card."