mirror of
https://github.com/jeffvli/sonixd.git
synced 2026-04-29 02:32:37 -04:00
Misc fixes
- Add albumlist filter fallback - Fix grid view config section title
This commit is contained in:
@@ -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'] : []
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user