Skip to content

Commit

Permalink
Remove clickable row in vault collections
Browse files Browse the repository at this point in the history
  • Loading branch information
Spitfireap committed Feb 13, 2024
1 parent a9e9eed commit 1196f4b
Showing 1 changed file with 2 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Component, EventEmitter, HostBinding, HostListener, Input, Output } from "@angular/core";
import { Router } from "@angular/router";
import { Component, EventEmitter, Input, Output } from "@angular/core";

import { Organization } from "@bitwarden/common/admin-console/models/domain/organization";
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
Expand Down Expand Up @@ -38,15 +37,7 @@ export class VaultCollectionRowComponent {
@Input() checked: boolean;
@Output() checkedToggled = new EventEmitter<void>();

constructor(
private router: Router,
private i18nService: I18nService,
) {}

@HostBinding("class")
get classes() {
return [].concat(this.disabled ? [] : ["tw-cursor-pointer"]);
}
constructor(private i18nService: I18nService) {}

get collectionGroups() {
if (!(this.collection instanceof CollectionAdminView)) {
Expand All @@ -71,16 +62,6 @@ export class VaultCollectionRowComponent {
}
}

@HostListener("click")
protected click() {
// FIXME: Verify that this floating promise is intentional. If it is, add an explanatory comment and ensure there is proper error handling.
// eslint-disable-next-line @typescript-eslint/no-floating-promises
this.router.navigate([], {
queryParams: { collectionId: this.collection.id },
queryParamsHandling: "merge",
});
}

protected edit() {
this.onEvent.next({ type: "editCollection", item: this.collection });
}
Expand Down

0 comments on commit 1196f4b

Please sign in to comment.