1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 09:43:23 +00:00

[SG-998] Move vault folder into app folder for web (#4824)

* Move vault folder into app folder for web

* Remove extra line is oss module
This commit is contained in:
Robyn MacCallum
2023-02-22 11:21:32 -05:00
committed by GitHub
parent 6f58d44833
commit c594f23121
88 changed files with 49 additions and 52 deletions

View File

@@ -0,0 +1,27 @@
import { Component, Input, OnChanges } from "@angular/core";
import { I18nService } from "@bitwarden/common/abstractions/i18n.service";
import { SelectionReadOnlyRequest } from "@bitwarden/common/models/request/selection-read-only.request";
import { GroupView } from "../../../organizations/core";
@Component({
selector: "app-group-badge",
templateUrl: "group-name-badge.component.html",
})
export class GroupNameBadgeComponent implements OnChanges {
@Input() selectedGroups: SelectionReadOnlyRequest[];
@Input() allGroups: GroupView[];
protected groupNames: string[] = [];
constructor(private i18nService: I18nService) {}
ngOnChanges() {
this.groupNames = this.selectedGroups
.map((g) => {
return this.allGroups.find((o) => o.id === g.id)?.name;
})
.sort(this.i18nService.collator.compare);
}
}