Add constants for app features
This commit is contained in:
@@ -6,6 +6,7 @@ import { MediaType } from '@jellyfin/sdk/lib/generated-client/models/media-type'
|
||||
import { getPlaylistsApi } from '@jellyfin/sdk/lib/utils/api/playlists-api';
|
||||
|
||||
import { appHost } from './apphost';
|
||||
import { AppFeature } from 'constants/appFeature';
|
||||
import globalize from 'lib/globalize';
|
||||
import { ServerConnections } from 'lib/jellyfin-apiclient';
|
||||
import { toApi } from 'utils/jellyfin-apiclient/compat';
|
||||
@@ -238,7 +239,7 @@ export function canShare (item, user) {
|
||||
if (isLocalItem(item)) {
|
||||
return false;
|
||||
}
|
||||
return user.Policy.EnablePublicSharing && appHost.supports('sharing');
|
||||
return user.Policy.EnablePublicSharing && appHost.supports(AppFeature.Sharing);
|
||||
}
|
||||
|
||||
export function enableDateAddedDisplay (item) {
|
||||
|
||||
Reference in New Issue
Block a user