1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +00:00

[PM-26356] Remove client-side pre-consolidated billing code (#16707)

* Remove legacy provider files

* Removing index files to make file re-org easier

* Move manage-clients.component and associated API invocation to AC

* Move add-existing-organization-dialog.component to AC

* Move manage-client-name-dialog.component and associated API call to AC

* Move misc clients files to AC

* Move create-client-dialog.component and associated API call to AC

* Move manage-client-subscription-dialog.component to AC

* Update provider-layout.component

* Cleanup

* Fix linting
This commit is contained in:
Alex Morask
2025-10-21 14:15:29 -05:00
committed by GitHub
parent 8beb1c6ab0
commit 5b2682ff21
41 changed files with 169 additions and 686 deletions

View File

@@ -36,18 +36,18 @@ import { OrgIconDirective } from "../../components/org-icon.directive";
],
})
export class ItemDetailsV2Component {
hideOwner = input<boolean>(false);
cipher = input.required<CipherView>();
organization = input<Organization | undefined>();
folder = input<FolderView | undefined>();
collections = input<CollectionView[] | undefined>();
showAllDetails = signal(false);
readonly hideOwner = input<boolean>(false);
readonly cipher = input.required<CipherView>();
readonly organization = input<Organization | undefined>();
readonly folder = input<FolderView | undefined>();
readonly collections = input<CollectionView[] | undefined>();
readonly showAllDetails = signal(false);
showOwnership = computed(() => {
readonly showOwnership = computed(() => {
return this.cipher().organizationId && this.organization() && !this.hideOwner();
});
hasSmallScreen = toSignal(
readonly hasSmallScreen = toSignal(
fromEvent(window, "resize").pipe(
map(() => window.innerWidth),
startWith(window.innerWidth),
@@ -56,7 +56,7 @@ export class ItemDetailsV2Component {
);
// Array to hold all details of item. Organization, Collections, and Folder
allItems = computed(() => {
readonly allItems = computed(() => {
let items: any[] = [];
if (this.showOwnership() && this.organization()) {
items.push(this.organization());
@@ -70,7 +70,7 @@ export class ItemDetailsV2Component {
return items;
});
showItems = computed(() => {
readonly showItems = computed(() => {
if (
this.hasSmallScreen() &&
this.allItems().length > 2 &&