Skip to main content

theme_set_enabled

Function theme_set_enabled 

Source
pub fn theme_set_enabled(
    config: &Config,
    discourse_name: &str,
    theme_id: u64,
    enabled: bool,
    dry_run: bool,
) -> Result<()>
Expand description

Enable or disable a theme/component (PUT /admin/themes/:id.json toggling the enabled boolean).