fix #2900 - theme deletion and fallback

This commit is contained in:
sbwalker
2023-06-19 12:29:43 -04:00
parent e3233fd19f
commit 3849f59126
3 changed files with 17 additions and 14 deletions

View File

@ -117,7 +117,9 @@ namespace Oqtane.Controllers
}
// remove theme
//_themes.DeleteTheme(theme.ThemeName);
_themes.DeleteTheme(theme.ThemeId);
_syncManager.AddSyncEvent(_alias.TenantId, EntityNames.Theme, theme.ThemeId, SyncEventActions.Delete);
_syncManager.AddSyncEvent(_alias.TenantId, EntityNames.Site, theme.SiteId, SyncEventActions.Refresh);
_logger.Log(LogLevel.Information, this, LogFunction.Delete, "Theme Removed For {ThemeName}", theme.ThemeName);
}
else