Fix server url for js client in accounts and settings

This commit is contained in:
Benedikt Kulmann
2021-01-13 09:23:49 +01:00
parent 20e150228c
commit 17a1d29d6a
5 changed files with 27 additions and 53 deletions
@@ -92,7 +92,7 @@ export default {
},
computed: {
...mapGetters(['user', 'configuration']),
...mapGetters(['user', 'getServerForJsClient']),
...mapState('Accounts', ['roles', 'selectedAccounts']),
selectAccountLabel () {
@@ -114,7 +114,7 @@ export default {
injectAuthToken(this.user.token)
const response = await RoleService_AssignRoleToUser({
$domain: this.configuration.server,
$domain: this.getServerForJsClient,
body: {
account_uuid: this.account.id,
role_id: roleId
@@ -139,7 +139,7 @@ export default {
injectAuthToken(this.user.token)
const response = await RoleService_ListRoleAssignments({
$domain: this.configuration.server,
$domain: this.getServerForJsClient,
body: {
account_uuid: this.account.id
}