Skip to content

Commit

Permalink
Focuses on alert; hides alert on load; fixes typo
Browse files Browse the repository at this point in the history
  • Loading branch information
HazelGrant committed Nov 1, 2023
1 parent e7fe81d commit e74d041
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ export class PathSelectorTable {
} catch (err) {
this.resetTable();
if (err.message.match("Permission denied")) {
$('#forbidden-warning').show();
$('#forbidden-warning').removeClass('d-none')
$('#forbidden-warning').trigger('focus');
}
console.log(err);
}
Expand All @@ -105,7 +106,7 @@ export class PathSelectorTable {
resetTable() {
$('#loading-icon').hide();
$(this.tableWrapper()).show();
$('#forbidden-warning').hide();
$('#forbidden-warning').addClass('d-none');
}

dataFromJsonResponse(response) {
Expand Down Expand Up @@ -152,7 +153,7 @@ export class PathSelectorTable {
}

tableWrapper() {
return `${this.tableId}_wrapper`;
return `#${this.tableId}_wrapper`;
}

// note that this is storing the file system path, not the path of the URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<ol id="<%= breadcrumb_id %>" class="breadcrumb breadcrumb-no-delimiter">
</ol>

<div class="alert alert-warning" role="alert" id="forbidden-warning">
<div class="d-none alert alert-warning" role="alert" id="forbidden-warning">
<%= t('dashboard.batch_connect_sessions_path_selector_forbidden_error') %>
</div>

Expand Down

0 comments on commit e74d041

Please sign in to comment.