Skip to content

Commit 0b385e8

Browse files
Bugfix - select and update logo / personalization
1 parent bc2b7e8 commit 0b385e8

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

app/views/personalization_settings/_logo_form.html.erb

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<label class="label">
3434
<span class="label-text"><%= t('upload_logo') %></span>
3535
</label>
36-
<%= f.file_field :logo, accept: 'image/png, image/jpeg, image/jpg', class: 'file-input file-input-bordered w-full', onchange: "document.getElementById('logo-upload-btn').disabled = !this.files.length" %>
36+
<%= f.file_field :logo, accept: 'image/png, image/jpeg, image/jpg', class: 'file-input file-input-bordered w-full', required: true %>
3737
<label class="label">
3838
<span class="label-text-alt">PNG, JPG (max 5MB)</span>
3939
</label>
@@ -46,10 +46,8 @@
4646
</ul>
4747
</div>
4848
</div>
49-
<div class="form-control">
50-
<button type="submit" id="logo-upload-btn" class="base-button" disabled>
51-
<%= button_title(title: t('upload'), disabled_with: t('uploading')).html_safe %>
52-
</button>
53-
</div>
49+
<toggle-submit class="form-control">
50+
<%= f.button button_title(title: t('upload'), disabled_with: t('uploading')), class: 'base-button' %>
51+
</toggle-submit>
5452
<% end %>
5553
</div>

0 commit comments

Comments
 (0)