Skip to content

Commit e467456

Browse files
wobravoLEON12699
authored andcommitted
fix: TT-190 Use add remove groups endpoints users
1 parent ee00578 commit e467456

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/app/modules/users/components/users-list/users-list.component.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class UsersListComponent implements OnInit, OnDestroy, AfterViewInit {
3737
constructor(
3838
private store: Store<User>,
3939
private actionsSubject$: ActionsSubject,
40-
// private featureManagerService: FeatureManagerService
40+
private featureManagerService: FeatureManagerService
4141
) {
4242
this.isLoading$ = store.pipe(delay(0), select(getIsLoading));
4343
}
@@ -51,10 +51,10 @@ export class UsersListComponent implements OnInit, OnDestroy, AfterViewInit {
5151
this.rerenderDataTable();
5252
});
5353

54-
/* this.isEnableToggleSubscription = this.isFeatureToggleActivated().subscribe((flag) => {
54+
this.isEnableToggleSubscription = this.isFeatureToggleActivated().subscribe((flag) => {
5555
this.isUserGroupsToggleOn = flag;
5656
console.log('in subscription', this.isUserGroupsToggleOn);
57-
});*/
57+
});
5858

5959
this.switchGroupsSubscription = this.actionsSubject$
6060
.pipe(
@@ -115,11 +115,11 @@ export class UsersListComponent implements OnInit, OnDestroy, AfterViewInit {
115115
: this.store.dispatch(new AddUserToGroup(userId, groupName));
116116
}
117117

118-
/* isFeatureToggleActivated() {
119-
return this.featureManagerService.isToggleEnabledForUser('ui-list-technologies').pipe(
118+
isFeatureToggleActivated() {
119+
return this.featureManagerService.isToggleEnabledForUser('ui-users-list').pipe(
120120
map((enabled) => {
121121
return enabled === true ? true : false;
122122
})
123123
);
124-
}*/
124+
}
125125
}

0 commit comments

Comments
 (0)