Skip to content

Commit

Permalink
Show default view
Browse files Browse the repository at this point in the history
  • Loading branch information
jpassing committed Feb 21, 2024
1 parent 0da4b60 commit e96e81e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
Binary file not shown.
Binary file not shown.
1 change: 0 additions & 1 deletion sources/src/main/resources/META-INF/resources/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,6 @@ <h2 class="mdc-dialog__title">Request access</h2>
//
const textField = new mdc.textField.MDCTextField(document.querySelector('#jit-requestdialog-justification'));
$('#jit-requestdialog-justification-hint').text(model.policy.justificationHint);

}

async showAsync() {
Expand Down
14 changes: 13 additions & 1 deletion sources/src/main/resources/META-INF/resources/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@ class ViewBase {
}
}

class DefaultView extends ViewBase {
constructor() {
super('#jit-default-view');
}
}

/** Dialog for selecting a scope */
class SelectScopeDialog extends DialogBase {
constructor() {
Expand Down Expand Up @@ -220,6 +226,11 @@ class AppBar {
}

async initialize() {
//
// Clear all views.
//
new DefaultView().showAsync();

try {
//
// Download policy to check if the communication with the model
Expand Down Expand Up @@ -307,7 +318,8 @@ $(document).ready(async () => {
</button>
</div>
</div>
</div>`);
</div>
<div class='jit-view' id='jit-default-view'></div>`);
$('body').append(`
<div class="mdc-dialog" id="jit-scopedialog">
<div class="mdc-dialog__container">
Expand Down

0 comments on commit e96e81e

Please sign in to comment.