UX: Show spinner during text replacement

UX: Show spinner during text replacement

diff --git a/app/assets/javascripts/admin/templates/modal/admin-reseed.hbs b/app/assets/javascripts/admin/templates/modal/admin-reseed.hbs
index 178cb34..9bdbd1d 100644
--- a/app/assets/javascripts/admin/templates/modal/admin-reseed.hbs
+++ b/app/assets/javascripts/admin/templates/modal/admin-reseed.hbs
@@ -31,6 +31,10 @@
 {{/d-modal-body}}
 
 <div class="modal-footer">
+  {{conditional-loading-spinner condition=reseeding size="small"}}
   {{d-button action=(action "reseed") class="btn-danger" label="admin.reseed.modal.replace" disabled=reseeding}}
-  {{d-modal-cancel close=(route-action "closeModal")}}
+
+  {{#unless reseeding}}
+    {{d-modal-cancel close=(route-action "closeModal")}}
+  {{/unless}}
 </div>

GitHub sha: 60e6070c

2 Likes