Delete custom whitelabel favicon and logo on whitelabel reset

master
Mohamed Rashd 2 years ago
parent c63168be62
commit af25528a8b

@ -154,9 +154,11 @@ public class WhiteLabelManagementServiceImpl implements WhiteLabelManagementServ
@Override @Override
public void resetToDefaultWhiteLabelTheme() throws MetadataManagementException { public void resetToDefaultWhiteLabelTheme() throws MetadataManagementException {
int tenantId = PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId(true);
WhiteLabelTheme whiteLabelTheme = getDefaultWhiteLabelTheme(); WhiteLabelTheme whiteLabelTheme = getDefaultWhiteLabelTheme();
Metadata metadata = constructWhiteLabelThemeMetadata(whiteLabelTheme); Metadata metadata = constructWhiteLabelThemeMetadata(whiteLabelTheme);
DeviceManagementDataHolder.getInstance().getMetadataManagementService().updateMetadata(metadata); DeviceManagementDataHolder.getInstance().getMetadataManagementService().updateMetadata(metadata);
WhiteLabelStorageUtil.deleteWhiteLabelImageForTenantIfExists(tenantId);
} }
/** /**

Loading…
Cancel
Save