Disable share downloading when EnableDownloads is false.

Fixes https://github.com/navidrome/navidrome/pull/2246#issuecomment-1472341635
This commit is contained in:
Deluan
2023-03-16 13:11:26 -04:00
parent 23c483da10
commit 377e7ebd52
5 changed files with 19 additions and 14 deletions
+1 -1
View File
@@ -105,7 +105,7 @@ const ShareList = (props) => {
<TextField source="description" />
{isDesktop && <TextField source="contents" />}
{isDesktop && <FormatInfo source="format" />}
<BooleanField source="downloadable" />
{config.enableDownloads && <BooleanField source="downloadable" />}
<NumberField source="visitCount" />
{isDesktop && (
<DateField source="lastVisitedAt" showTime sortByOrder={'DESC'} />