Squashed 'sample-front-end/' changes from c58ef74..800cea6
800cea6 feat: Add backup settings functionality git-subtree-dir: sample-front-end git-subtree-split: 800cea6f86938884f0ee97d4f540b038fb2489e4
This commit is contained in:
+10
-1
@@ -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