Skip to content

Commit

Permalink
ui. check if the Provider is created
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed Jan 21, 2020
1 parent e2aa17a commit e084f02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/src/components/system/SSH.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<span v-if="SSHConfig.errors.PasswordAuthentication.hasError" class="help-block">{{$t('validation.validation_failed')}}: {{$t('validation.'+SSHConfig.errors.PasswordAuthentication.message)}}</span>
</div>
</div>
<div v-if="ShellOverrideStatus"v-bind:class="['form-group', SSHConfig.errors.AllowGroups.hasError ? 'has-error' : '']">
<div v-if="ShellOverrideStatus && Provider !== 'none'"v-bind:class="['form-group', SSHConfig.errors.AllowGroups.hasError ? 'has-error' : '']">
<label
class="col-sm-2 control-label"
>
Expand Down Expand Up @@ -158,6 +158,7 @@ export default {
},
Groups: [],
ShellOverrideStatus: false,
Provider: "none",
SSHConfig: {
SelectedGroups: null,
AllowGroups:{},
Expand Down Expand Up @@ -261,6 +262,7 @@ export default {
}
context.view.isLoaded = true;
context.Groups = success.groups;
context.Provider = success.Provider;
context.ShellOverrideStatus = success.ShellOverrideStatus;
context.SSHConfig.TCPPort = success.configuration.props.TCPPort;
context.SSHConfig.AllowGroups = success.configuration.props.AllowGroups;
Expand Down

0 comments on commit e084f02

Please sign in to comment.