mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
ability to restore (soft deleted) listings
This commit is contained in:
@@ -276,6 +276,14 @@ export const useFredyState = create(
|
||||
throw Exception;
|
||||
}
|
||||
},
|
||||
async restoreListings(ids) {
|
||||
try {
|
||||
await xhrPost('/api/listings/restore', { ids });
|
||||
} catch (Exception) {
|
||||
console.error('Error while trying to restore listings. Error:', Exception);
|
||||
throw Exception;
|
||||
}
|
||||
},
|
||||
},
|
||||
userSettings: {
|
||||
async getUserSettings() {
|
||||
|
||||
Reference in New Issue
Block a user