PlexPlaylist_UI subtree merge
feat: Add backup settings functionality Merge commit '0667fac9401254dd9b26043408cb6b204a894184'
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
|
||||
|
||||
|
||||
import { Playlist, ServerType, ApiResponse, PlexServerConnection, PlexConnectionSettings, PlexLibrary, SyncStrategy, PathMappingConfig, ScheduleSettings, ScheduleMode } from '../types';
|
||||
|
||||
import { Playlist, ServerType, ApiResponse, PlexServerConnection, PlexConnectionSettings, PlexLibrary, SyncStrategy, PathMappingConfig, ScheduleSettings, ScheduleMode, BackupSettings } from '../types';
|
||||
import { MOCK_LOCAL_PLAYLISTS, MOCK_CLOUD_PLAYLISTS } from './mockData';
|
||||
|
||||
const SIMULATE_DELAY_MS = 800;
|
||||
@@ -220,5 +221,13 @@ export const apiService = {
|
||||
resolve({ data: null, status: 'success', message: 'Schedule updated successfully' });
|
||||
}, 500);
|
||||
});
|
||||
},
|
||||
|
||||
saveBackupSettings: async (settings: BackupSettings): Promise<ApiResponse<null>> => {
|
||||
return new Promise((resolve) => {
|
||||
setTimeout(() => {
|
||||
resolve({ data: null, status: 'success', message: 'Backup settings saved' });
|
||||
}, 500);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user