backup sites: disable del in demo mode
This commit is contained in:
@@ -100,7 +100,10 @@ async function onRemoveSite(site) {
|
||||
if (!yes) return;
|
||||
|
||||
const [error] = await backupSitesModels.del(site.id);
|
||||
if (error) console.error(error);
|
||||
if (error) {
|
||||
window.pankow.notify({ text: error.body?.message || 'Failed to delete backup site', type: 'danger' });
|
||||
return console.error(error);
|
||||
}
|
||||
|
||||
await refresh();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user