@ -7,8 +7,12 @@ import SensitiveInput from '@app/components/Common/SensitiveInput';
import LibraryItem from '@app/components/Settings/LibraryItem' ;
import LibraryItem from '@app/components/Settings/LibraryItem' ;
import SettingsBadge from '@app/components/Settings/SettingsBadge' ;
import SettingsBadge from '@app/components/Settings/SettingsBadge' ;
import globalMessages from '@app/i18n/globalMessages' ;
import globalMessages from '@app/i18n/globalMessages' ;
import { SaveIcon } from '@heroicons/react/outline' ;
import { ArrowDownOnSquareIcon } from '@heroicons/react/24/outline' ;
import { RefreshIcon , SearchIcon , XIcon } from '@heroicons/react/solid' ;
import {
ArrowPathIcon ,
MagnifyingGlassIcon ,
XMarkIcon ,
} from '@heroicons/react/24/solid' ;
import type { PlexDevice } from '@server/interfaces/api/plexInterfaces' ;
import type { PlexDevice } from '@server/interfaces/api/plexInterfaces' ;
import type { PlexSettings , TautulliSettings } from '@server/lib/settings' ;
import type { PlexSettings , TautulliSettings } from '@server/lib/settings' ;
import axios from 'axios' ;
import axios from 'axios' ;
@ -487,7 +491,7 @@ const SettingsPlex = ({ onComplete }: SettingsPlexProps) => {
} }
} }
className = "input-action"
className = "input-action"
>
>
< Refres hIcon
< ArrowPat hIcon
className = { isRefreshingPresets ? 'animate-spin' : '' }
className = { isRefreshingPresets ? 'animate-spin' : '' }
style = { { animationDirection : 'reverse' } }
style = { { animationDirection : 'reverse' } }
/ >
/ >
@ -598,7 +602,7 @@ const SettingsPlex = ({ onComplete }: SettingsPlexProps) => {
type = "submit"
type = "submit"
disabled = { isSubmitting || ! isValid }
disabled = { isSubmitting || ! isValid }
>
>
< Sav eIcon / >
< ArrowDownOnSquar eIcon / >
< span >
< span >
{ isSubmitting
{ isSubmitting
? intl . formatMessage ( globalMessages . saving )
? intl . formatMessage ( globalMessages . saving )
@ -625,7 +629,7 @@ const SettingsPlex = ({ onComplete }: SettingsPlexProps) => {
onClick = { ( ) = > syncLibraries ( ) }
onClick = { ( ) = > syncLibraries ( ) }
disabled = { isSyncing || ! data ? . ip || ! data ? . port }
disabled = { isSyncing || ! data ? . ip || ! data ? . port }
>
>
< Refres hIcon
< ArrowPat hIcon
className = { isSyncing ? 'animate-spin' : '' }
className = { isSyncing ? 'animate-spin' : '' }
style = { { animationDirection : 'reverse' } }
style = { { animationDirection : 'reverse' } }
/ >
/ >
@ -708,12 +712,12 @@ const SettingsPlex = ({ onComplete }: SettingsPlexProps) => {
onClick = { ( ) = > startScan ( ) }
onClick = { ( ) = > startScan ( ) }
disabled = { isSyncing || ! activeLibraries . length }
disabled = { isSyncing || ! activeLibraries . length }
>
>
< Search Icon / >
< MagnifyingGlass Icon / >
< span > { intl . formatMessage ( messages . startscan ) } < / span >
< span > { intl . formatMessage ( messages . startscan ) } < / span >
< / Button >
< / Button >
) : (
) : (
< Button buttonType = "danger" onClick = { ( ) = > cancelScan ( ) } >
< Button buttonType = "danger" onClick = { ( ) = > cancelScan ( ) } >
< X Icon / >
< X Mark Icon / >
< span > { intl . formatMessage ( messages . cancelscan ) } < / span >
< span > { intl . formatMessage ( messages . cancelscan ) } < / span >
< / Button >
< / Button >
) }
) }
@ -916,7 +920,7 @@ const SettingsPlex = ({ onComplete }: SettingsPlexProps) => {
type = "submit"
type = "submit"
disabled = { isSubmitting || ! isValid }
disabled = { isSubmitting || ! isValid }
>
>
< Sav eIcon / >
< ArrowDownOnSquar eIcon / >
< span >
< span >
{ isSubmitting
{ isSubmitting
? intl . formatMessage ( globalMessages . saving )
? intl . formatMessage ( globalMessages . saving )