Skip to content

Commit

Permalink
Merge pull request #514 from jumpserver/dev
Browse files Browse the repository at this point in the history
Merge dev
  • Loading branch information
BaiJiangJie authored Nov 18, 2020
2 parents 266d107 + 0498db9 commit 14286b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/views/assets/SystemUser/SystemUserCreateUpdate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export default {
if (formValue.update_password || formValue.protocol === 'k8s') {
return true
}
if (formValue.login_mode === 'login_mode') {
if (formValue.login_mode === 'manual') {
return true
}
return !this.$route.params.id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export default {
icon: 'fa-edit',
title: this.$t('perms.addSystemUserToThisPermission'),
objectsAjax: {
url: `/api/v1/assets/system-users/?category=${vm.object.category}&type=${vm.object.type}`,
url: vm.object.category === 'remote_app' ? `/api/v1/assets/system-users/?protocol=rdp` : `/api/v1/assets/system-users/?protocol=${vm.object.type}`,
transformOption: (item) => {
return { label: item.name + ' (' + item.username + ')', value: item.id }
}
Expand Down

0 comments on commit 14286b9

Please sign in to comment.