chore: remove theme delete logging, add notifications
This commit is contained in:
1 parent
fcf9e46a8f
commit
2ba094f07e
1 file changed
+12
-1
@@ -1912,7 +1912,18 @@
|
|||||||
disabled={theme.status !== 'installed'}
|
disabled={theme.status !== 'installed'}
|
||||||
onclick={async () => {
|
onclick={async () => {
|
||||||
try {
|
try {
|
||||||
await deleteTheme(theme);
|
const deleteResult = await deleteTheme(theme);
|
||||||
|
if (deleteResult) {
|
||||||
|
sileo.success({
|
||||||
|
title: 'Yaay!',
|
||||||
|
description: 'Theme uninstalled successfully!',
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
sileo.error({
|
||||||
|
title: 'Uhhm..',
|
||||||
|
description: 'Failed to uninstall theme.',
|
||||||
|
});
|
||||||
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
sileo.error({
|
sileo.error({
|
||||||
|
|||||||
Reference in new issue
Block a user