mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Add proper error message when SCSS variable name is invalid when uploading a theme file
This commit is contained in:
@@ -5,6 +5,11 @@
|
||||
<label>{{i18n 'admin.customize.theme.variable_name'}}
|
||||
{{input id="name" value=name}}<br>
|
||||
</label>
|
||||
{{#if fileSelected}}
|
||||
{{#unless nameValid}}
|
||||
<span class="alert alert-error">{{i18n "admin.customize.theme.variable_name_invalid"}}</span>
|
||||
{{/unless}}
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/d-modal-body}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user