Skip to content
Snippets Groups Projects
Commit 0b18cfa5 authored by kbeyro's avatar kbeyro
Browse files

fix issue with href

parent 612ad693
No related branches found
No related tags found
No related merge requests found
...@@ -68,7 +68,6 @@ export class UsersListComponent implements OnInit { ...@@ -68,7 +68,6 @@ export class UsersListComponent implements OnInit {
}) })
) )
console.warn("test in")
users.subscribe((all) => { users.subscribe((all) => {
this.allUsers = all; this.allUsers = all;
/* parse date strings to date objects */ /* parse date strings to date objects */
...@@ -122,12 +121,6 @@ export class UsersListComponent implements OnInit { ...@@ -122,12 +121,6 @@ export class UsersListComponent implements OnInit {
} else { } else {
const foundUser = this.allUsers.find(user => user.id === event.userId); const foundUser = this.allUsers.find(user => user.id === event.userId);
this.onRemoveRole({id: event.userId, roles: foundUser.roles}) this.onRemoveRole({id: event.userId, roles: foundUser.roles})
// const role = foundUser.roles.find(roleS => roleS.domainId === event.domainId)
// console.warn('found role -', role)
// this.userService.removeRole(event.userId, role.role, event.domainId).subscribe(_ => {
// console.warn('test responsne');
// this.update(this.domainId)
// })
} }
} }
......
...@@ -149,8 +149,7 @@ ...@@ -149,8 +149,7 @@
<td *ngIf="domainMode && !isModeAllowed(ComponentMode.EDIT)"> <td *ngIf="domainMode && !isModeAllowed(ComponentMode.EDIT)">
<span *ngIf="!checkUserIfIsCurrentUser(user.username)"> <span *ngIf="!checkUserIfIsCurrentUser(user.username)">
<a style="display: inline-block" class="" aria-expanded="false" <a style="display: inline-block" class="" aria-expanded="false"
aria-haspopup="true" aria-haspopup="true" role="button" (click)="onRemoveFromDomain.emit(user);$event.stopPropagation()">
href="#" role="button" (click)="onRemoveFromDomain.emit(user);$event.stopPropagation()">
<em class="fas fa-trash icon-black "></em> <em class="fas fa-trash icon-black "></em>
</a> </a>
</span> </span>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment