Skip to content

Commit

Permalink
Adding error handling to smb authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
Spurs20 committed Sep 2, 2021
1 parent 7604f20 commit 40c183f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions web-server/plugins/slycat-parameter-image/wizard-ui.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ <h3 class="modal-title">New Parameter Space Model</h3>
session_exists:remote.session_exists
"></slycat-remote-controls>
<div class="smb-wizard-login" style="padding-left: 16px;" data-bind="visible: ps_type() == 'smb'">SMB</div>
<label class="col-sm-9 alert alert-danger slycat-big-scrolling-alert" role="alert"
data-bind="visible:remote.status_type() == 'danger' && ps_type() == 'smb', text: 'Remote authentication failed.'" style="position:relative; left:145px;"></label>
</form>
</div>

Expand Down Expand Up @@ -136,9 +138,9 @@ <h3 class="modal-title">New Parameter Space Model</h3>
<button class="btn btn-primary" data-bind="visible:tab() == 0,click:select_type">Continue</button>
<button class="btn btn-primary local-browser-continue browser-continue" data-bind="visible:tab() == 1,click:upload_table"><i class="fa fa-spinner fa-pulse"></i> Continue</button>
<button class="btn btn-primary" data-bind="visible:tab() == 2 && ps_type() == 'remote',click:connect,enable:remote.enable">Continue</button>
<button class="btn btn-primary" data-bind="visible:tab() == 2 && ps_type() == 'smb',click:connectSMB,enable:remote.enable">Continue SMB</button>
<button class="btn btn-primary" data-bind="visible:tab() == 2 && ps_type() == 'smb',click:connectSMB,enable:remote.enable">Continue</button>
<button class="btn btn-primary remote-browser-continue browser-continue" data-bind="visible:tab() == 3 && ps_type() == 'remote',click:load_table"><i class="fa fa-spinner fa-pulse"></i> Continue</button>
<button class="btn btn-primary remote-browser-continue browser-continue" data-bind="visible:tab() == 3 && ps_type() == 'smb',click:load_table_smb"><i class="fa fa-spinner fa-pulse"></i> Continue SMB upload</button>
<button class="btn btn-primary remote-browser-continue browser-continue" data-bind="visible:tab() == 3 && ps_type() == 'smb',click:load_table_smb"><i class="fa fa-spinner fa-pulse"></i> Continue</button>
<button class="btn btn-primary" data-bind="visible:tab() == 4,click:finish">Continue</button>
<button class="btn btn-primary"
data-bind="
Expand Down
2 changes: 2 additions & 0 deletions web-server/templates/slycat-remote-login.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ <h3 class="modal-title" data-bind="text:title"></h3>
<form role="form">
<slycat-login-controls data-bind="visible: !smb" params="username:remote.username,password:remote.password,status:remote.status,status_type:remote.status_type,enable:remote.enable,focus:remote.focus,activate:login"></slycat-login-controls>
</form>
<label class="col-sm-9 alert alert-danger slycat-big-scrolling-alert" role="alert"
data-bind="visible:remote.status_type() == 'danger', text: 'Remote authentication failed.'" style="position:relative; left:80px;"></label>
<!-- /ko -->
</div>
<div class="modal-footer">
Expand Down

0 comments on commit 40c183f

Please sign in to comment.