Skip to content

Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.

fix(frontend:users): add button behavior inside groups

johavend13132ad6e3c
diff --git a/frontend/src/app/applications/users/components/user-groups.component.html b/frontend/src/app/applications/users/components/user-groups.component.html
index 9067ff17..4cc31796 100644
--- a/frontend/src/app/applications/users/components/user-groups.component.html
+++ b/frontend/src/app/applications/users/components/user-groups.component.html
@@ -10,7 +10,7 @@
<button (click)="openDialog(true)"
[disabled]="!allowedAction.addGroup && !allowedAction.addUsers"
class="btn btn-default me-1"
- [tooltip]="(allowedAction.addGroup ? 'New personal group': 'Add members') | translate:locale.language"
+ [tooltip]="(!currentGroup && allowedAction.addGroup ? 'New personal group': 'Add members') | translate:locale.language"
container="body"
type="button">
<fa-icon [icon]="icons.faPlus"></fa-icon>
diff --git a/frontend/src/app/applications/users/components/user-groups.component.ts b/frontend/src/app/applications/users/components/user-groups.component.ts
index 88918780..06f97877 100644
--- a/frontend/src/app/applications/users/components/user-groups.component.ts
+++ b/frontend/src/app/applications/users/components/user-groups.component.ts
@@ -232,6 +232,7 @@ export class UserGroupsComponent {
if (this.focusOnSelect) {
this.focusOn(this.focusOnSelect)
} else {
+ this.onSelect()
this.scrollView.scrollInto(-1)
}
this.loading = false