Skip to content

Commit

Permalink
Removes changes from PR that coincides with test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
HazelGrant committed Dec 18, 2024
1 parent 24ace5e commit c216d65
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions apps/dashboard/app/javascript/files/data_table.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const EVENTNAME = {
};

const CONTENTID = '#directory-contents';
const SPINNERID = '#tloading_spinner';
// const SPINNERID = '#tloading_spinner';

let table = null;

Expand Down 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 @@ -305,7 +305,7 @@ class DataTable {
}
});

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

return result;
} catch (e) {
Expand All @@ -318,17 +318,17 @@ class DataTable {

$('#open-in-terminal-btn').addClass('disabled');

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

// Removed this as it was causing a JS Error and there is no reprocution from removing it.
// return await Promise.reject(e);
}
}

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

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

Expand Down

0 comments on commit c216d65

Please sign in to comment.