1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

Revert "[EC-772] Add i18n key typechecking in web (#4023)" (#4296)

This reverts commit 5a1940f3f4.
This commit is contained in:
Robyn MacCallum
2022-12-21 17:46:23 -05:00
committed by GitHub
parent eeb407b8a4
commit 3a98b415b0
50 changed files with 109 additions and 176 deletions

View File

@@ -1,13 +1,11 @@
import { DialogRef, DIALOG_DATA } from "@angular/cdk/dialog";
import { Component, Inject, OnInit } from "@angular/core";
import { WebI18nKey } from "@bitwarden/web-vault/app/core/web-i18n.service.implementation";
export interface BulkStatusDetails {
title: WebI18nKey;
subTitle: WebI18nKey;
columnTitle: WebI18nKey;
message: WebI18nKey;
title: string;
subTitle: string;
columnTitle: string;
message: string;
details: BulkOperationStatus[];
}

View File

@@ -4,7 +4,6 @@ import { combineLatest, map, Observable } from "rxjs";
import { StateService } from "@bitwarden/common/abstractions/state.service";
import { AccountProfile } from "@bitwarden/common/models/domain/account";
import { WebI18nKey } from "@bitwarden/web-vault/app/core/web-i18n.service.implementation";
@Component({
selector: "sm-header",
@@ -14,7 +13,7 @@ export class HeaderComponent {
@Input() title: string;
@Input() searchTitle: string;
protected routeData$: Observable<{ title: WebI18nKey; searchTitle: WebI18nKey }>;
protected routeData$: Observable<{ title: string; searchTitle: string }>;
protected account$: Observable<AccountProfile>;
constructor(private route: ActivatedRoute, private stateService: StateService) {

View File

@@ -1,8 +1,6 @@
import { SelectionModel } from "@angular/cdk/collections";
import { Component, EventEmitter, Input, Output } from "@angular/core";
import { WebI18nKey } from "@bitwarden/web-vault/app/core/web-i18n.service.implementation";
import { AccessTokenView } from "../models/view/access-token.view";
@Component({
@@ -36,7 +34,7 @@ export class AccessListComponent {
: this.selection.select(...this.tokens.map((s) => s.id));
}
protected permission(token: AccessTokenView): WebI18nKey {
protected permission(token: AccessTokenView) {
return "canRead";
}
}