|
|
|
@ -12,6 +12,7 @@ import Badge from '../Common/Badge';
|
|
|
|
|
import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
|
|
|
|
|
import * as Yup from 'yup';
|
|
|
|
|
import Alert from '../Common/Alert';
|
|
|
|
|
import Spinner from '../../assets/spinner.svg';
|
|
|
|
|
|
|
|
|
|
const messages = defineMessages({
|
|
|
|
|
plexsettings: 'Plex Settings',
|
|
|
|
@ -437,10 +438,11 @@ const SettingsPlex: React.FC<SettingsPlexProps> = ({ onComplete }) => {
|
|
|
|
|
}}
|
|
|
|
|
className="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium leading-5 text-white transition duration-150 ease-in-out bg-indigo-600 border border-gray-500 rounded-r-md hover:bg-indigo-500 focus:outline-none focus:ring-blue focus:border-blue-300 active:bg-gray-100 active:text-gray-700"
|
|
|
|
|
>
|
|
|
|
|
{isRefreshingPresets ? (
|
|
|
|
|
<Spinner className="w-5 h-5" />
|
|
|
|
|
) : (
|
|
|
|
|
<svg
|
|
|
|
|
className={`w-5 h-5 ${
|
|
|
|
|
isRefreshingPresets ? 'animate-spin' : ''
|
|
|
|
|
}`}
|
|
|
|
|
className="w-5 h-5"
|
|
|
|
|
fill="currentColor"
|
|
|
|
|
viewBox="0 0 20 20"
|
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
@ -451,6 +453,7 @@ const SettingsPlex: React.FC<SettingsPlexProps> = ({ onComplete }) => {
|
|
|
|
|
clipRule="evenodd"
|
|
|
|
|
/>
|
|
|
|
|
</svg>
|
|
|
|
|
)}
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|