Skip to content

Commit

Permalink
Uncomments one spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
HazelGrant committed Dec 18, 2024
1 parent 36441c7 commit 88e2184
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/dashboard/app/javascript/files/data_table.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ class DataTable {
async reloadTable(url) {
var request_url = url || history.state.currentDirectoryUrl;

// this.toggleSpinner();
this.toggleSpinner();

try {
const response = await fetch(request_url, { headers: { 'Accept': 'application/json' }, cache: 'no-store' });
Expand Down Expand Up @@ -325,10 +325,10 @@ class DataTable {
}
}

/* toggleSpinner() {
toggleSpinner() {
document.querySelector(SPINNERID).classList.toggle('d-none');
document.querySelector(CONTENTID).classList.toggle('d-none');
} */
}

updateDotFileVisibility() {
this.reloadTable();
Expand Down
1 change: 1 addition & 0 deletions apps/dashboard/app/views/files/_files_table.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<tbody>
</tbody>
</table>
<%= render partial: "spinner" %>
</div>
</div>

Expand Down

0 comments on commit 88e2184

Please sign in to comment.