mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Update SyncPlay plugin check
This commit is contained in:
parent
64ecc3eae7
commit
3d91c72a0f
1 changed files with 2 additions and 1 deletions
|
@ -16,6 +16,7 @@ import imageHelper from './imagehelper';
|
||||||
import { getMenuLinks } from '../scripts/settings/webSettings';
|
import { getMenuLinks } from '../scripts/settings/webSettings';
|
||||||
import Dashboard, { pageClassOn } from '../utils/dashboard';
|
import Dashboard, { pageClassOn } from '../utils/dashboard';
|
||||||
import ServerConnections from '../components/ServerConnections';
|
import ServerConnections from '../components/ServerConnections';
|
||||||
|
import { PluginType } from '../types/plugin.ts';
|
||||||
import Events from '../utils/events.ts';
|
import Events from '../utils/events.ts';
|
||||||
import { getParameterByName } from '../utils/url.ts';
|
import { getParameterByName } from '../utils/url.ts';
|
||||||
|
|
||||||
|
@ -159,7 +160,7 @@ import '../styles/flexstyles.scss';
|
||||||
// Button is present
|
// Button is present
|
||||||
headerSyncButton
|
headerSyncButton
|
||||||
// SyncPlay plugin is loaded
|
// SyncPlay plugin is loaded
|
||||||
&& pluginManager.plugins.filter(plugin => plugin.id === 'syncplay').length > 0
|
&& pluginManager.ofType(PluginType.SyncPlay).length > 0
|
||||||
// SyncPlay enabled for user
|
// SyncPlay enabled for user
|
||||||
&& policy?.SyncPlayAccess !== 'None'
|
&& policy?.SyncPlayAccess !== 'None'
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue