Skip to content

Commit

Permalink
Add message texts for search IAM roles without permissions (401) (#245)
Browse files Browse the repository at this point in the history
* fix: add message texts for search roles without permissions (401)

* fix: search iam roles only on opening dialog

* fix: added platform-browser to webpack config

* fix: format webpack config

* fix: update onecx lib version
  • Loading branch information
HenryT-CG authored Oct 22, 2024
1 parent f9014c7 commit a304179
Show file tree
Hide file tree
Showing 6 changed files with 108 additions and 96 deletions.
140 changes: 86 additions & 54 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,16 @@
"@ngrx/router-store": "^18.0.1",
"@ngx-translate/core": "^15.0.0",
"@ngx-translate/http-loader": "^8.0.0",
"@onecx/accelerator": "^5.13.0",
"@onecx/angular-accelerator": "^5.13.0",
"@onecx/angular-auth": "^5.13.0",
"@onecx/angular-integration-interface": "^5.13.0",
"@onecx/angular-remote-components": "^5.13.0",
"@onecx/angular-webcomponents": "^5.13.0",
"@onecx/integration-interface": "^5.13.0",
"@onecx/keycloak-auth": "^5.13.0",
"@onecx/portal-integration-angular": "^5.13.0",
"@onecx/portal-layout-styles": "^5.13.0",
"@onecx/accelerator": "5.19.4",
"@onecx/angular-accelerator": "5.19.4",
"@onecx/angular-auth": "5.19.4",
"@onecx/angular-integration-interface": "5.19.4",
"@onecx/angular-remote-components": "5.19.4",
"@onecx/angular-webcomponents": "5.19.4",
"@onecx/integration-interface": "5.19.4",
"@onecx/keycloak-auth": "5.19.4",
"@onecx/portal-integration-angular": "5.19.4",
"@onecx/portal-layout-styles": "5.19.4",
"@webcomponents/webcomponentsjs": "^2.8.0",
"file-saver": "^2.0.5",
"keycloak-angular": "^16.0.1",
Expand Down
2 changes: 1 addition & 1 deletion src/app/permission/role-detail/role-detail.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class RoleDetailComponent implements OnChanges {
this.formGroupRole.controls['name'].patchValue(this.role.name)
this.formGroupRole.controls['description'].patchValue(this.role.description)
}
this.searchIamRoles()
if (this.showIamRolesDialog) this.searchIamRoles()
}

public onClose(): void {
Expand Down
3 changes: 2 additions & 1 deletion src/assets/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,11 @@
},
"HTTP_STATUS_401": {
"APPS": "Sie haben keine Rechte um Applikationen zu sehen.",
"ROLES": "Sie haben keine Rechte um Rollen zu sehen.",
"WORKSPACE": "Sie haben keine Rechte um Workspace Daten zu sehen."
},
"HTTP_STATUS_403": {
"APP": "Sie haben keine Rechte um Applikation Daten zu sehen.",
"APP": "Sie haben keine Rechte um Applikationsdaten zu sehen.",
"APPS": "Sie haben keine Rechte um Applikationen zu sehen.",
"ROLES": "Sie haben keine Rechte um Rollen zu sehen.",
"PERMISSIONS": "Sie haben keine Rechte um Berechtigungen zu sehen.",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@
},
"HTTP_STATUS_401": {
"APPS": "You have no Permissions to see Applications.",
"ROLES": "You have no Permissions to see Roles.",
"WORKSPACE": "You have no Permissions to see Workspace Data."
},
"HTTP_STATUS_403": {
Expand Down
Loading

0 comments on commit a304179

Please sign in to comment.