mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Only block local edits for git-sourced themes (#11450)
Themes uploaded as zip files are given a row in the `remote_themes` table to store metadata, even though they are not truly remote.
This commit is contained in:
@@ -28,7 +28,7 @@ export default Route.extend({
|
||||
const fields = wrapper.model
|
||||
.get("fields")
|
||||
[wrapper.target].map((f) => f.name);
|
||||
if (wrapper.model.remote_theme) {
|
||||
if (wrapper.model.remote_theme && wrapper.model.remote_theme.is_git) {
|
||||
this.transitionTo("adminCustomizeThemes.index");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -201,7 +201,7 @@
|
||||
{{/d-section}}
|
||||
{{/if}}
|
||||
|
||||
{{#unless model.remote_theme}}
|
||||
{{#unless model.remote_theme.is_git}}
|
||||
<div class="control-unit">
|
||||
<div class="mini-title">{{i18n "admin.customize.theme.css_html"}}</div>
|
||||
{{#if model.hasEditedFields}}
|
||||
|
||||
Reference in New Issue
Block a user