|
|
@ -422,45 +422,51 @@ const UserGeneralSettings = () => {
|
|
|
|
{hasPermission(
|
|
|
|
{hasPermission(
|
|
|
|
[Permission.AUTO_REQUEST, Permission.AUTO_REQUEST_MOVIE],
|
|
|
|
[Permission.AUTO_REQUEST, Permission.AUTO_REQUEST_MOVIE],
|
|
|
|
{ type: 'or' }
|
|
|
|
{ type: 'or' }
|
|
|
|
) && (
|
|
|
|
) &&
|
|
|
|
<div className="form-row">
|
|
|
|
user?.userType === UserType.PLEX && (
|
|
|
|
<label
|
|
|
|
<div className="form-row">
|
|
|
|
htmlFor="watchlistSyncMovies"
|
|
|
|
<label
|
|
|
|
className="checkbox-label"
|
|
|
|
htmlFor="watchlistSyncMovies"
|
|
|
|
>
|
|
|
|
className="checkbox-label"
|
|
|
|
<span>
|
|
|
|
>
|
|
|
|
{intl.formatMessage(messages.plexwatchlistsyncmovies)}
|
|
|
|
<span>
|
|
|
|
</span>
|
|
|
|
{intl.formatMessage(messages.plexwatchlistsyncmovies)}
|
|
|
|
<span className="label-tip">
|
|
|
|
</span>
|
|
|
|
{intl.formatMessage(messages.plexwatchlistsyncmoviestip, {
|
|
|
|
<span className="label-tip">
|
|
|
|
PlexWatchlistSupportLink: (msg: React.ReactNode) => (
|
|
|
|
{intl.formatMessage(
|
|
|
|
<a
|
|
|
|
messages.plexwatchlistsyncmoviestip,
|
|
|
|
href="https://support.plex.tv/articles/universal-watchlist/"
|
|
|
|
{
|
|
|
|
className="text-white transition duration-300 hover:underline"
|
|
|
|
PlexWatchlistSupportLink: (
|
|
|
|
target="_blank"
|
|
|
|
msg: React.ReactNode
|
|
|
|
rel="noreferrer"
|
|
|
|
) => (
|
|
|
|
>
|
|
|
|
<a
|
|
|
|
{msg}
|
|
|
|
href="https://support.plex.tv/articles/universal-watchlist/"
|
|
|
|
</a>
|
|
|
|
className="text-white transition duration-300 hover:underline"
|
|
|
|
),
|
|
|
|
target="_blank"
|
|
|
|
})}
|
|
|
|
rel="noreferrer"
|
|
|
|
</span>
|
|
|
|
>
|
|
|
|
</label>
|
|
|
|
{msg}
|
|
|
|
<div className="form-input-area">
|
|
|
|
</a>
|
|
|
|
<Field
|
|
|
|
),
|
|
|
|
type="checkbox"
|
|
|
|
}
|
|
|
|
id="watchlistSyncMovies"
|
|
|
|
)}
|
|
|
|
name="watchlistSyncMovies"
|
|
|
|
</span>
|
|
|
|
onChange={() => {
|
|
|
|
</label>
|
|
|
|
setFieldValue(
|
|
|
|
<div className="form-input-area">
|
|
|
|
'watchlistSyncMovies',
|
|
|
|
<Field
|
|
|
|
!values.watchlistSyncMovies
|
|
|
|
type="checkbox"
|
|
|
|
);
|
|
|
|
id="watchlistSyncMovies"
|
|
|
|
}}
|
|
|
|
name="watchlistSyncMovies"
|
|
|
|
/>
|
|
|
|
onChange={() => {
|
|
|
|
|
|
|
|
setFieldValue(
|
|
|
|
|
|
|
|
'watchlistSyncMovies',
|
|
|
|
|
|
|
|
!values.watchlistSyncMovies
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
|
|
|
|
{hasPermission(
|
|
|
|
{hasPermission(
|
|
|
|
[Permission.AUTO_REQUEST, Permission.AUTO_REQUEST_TV],
|
|
|
|
[Permission.AUTO_REQUEST, Permission.AUTO_REQUEST_TV],
|
|
|
|
{ type: 'or' }
|
|
|
|
{ type: 'or' }
|
|
|
|