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 Dashboard, { pageClassOn } from '../utils/dashboard';
|
||||
import ServerConnections from '../components/ServerConnections';
|
||||
import { PluginType } from '../types/plugin.ts';
|
||||
import Events from '../utils/events.ts';
|
||||
import { getParameterByName } from '../utils/url.ts';
|
||||
|
||||
|
@ -159,7 +160,7 @@ import '../styles/flexstyles.scss';
|
|||
// Button is present
|
||||
headerSyncButton
|
||||
// SyncPlay plugin is loaded
|
||||
&& pluginManager.plugins.filter(plugin => plugin.id === 'syncplay').length > 0
|
||||
&& pluginManager.ofType(PluginType.SyncPlay).length > 0
|
||||
// SyncPlay enabled for user
|
||||
&& policy?.SyncPlayAccess !== 'None'
|
||||
) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue