Add proper error message when SCSS variable name is invalid when uploading a theme file

This commit is contained in:
Régis Hanol
2018-03-07 21:37:22 +01:00
parent a8f825d6a9
commit b5b5b68972
2 changed files with 6 additions and 0 deletions

View File

@@ -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}}