mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
Fix strictTemplating warnings/error after merge with master
This commit is contained in:
@@ -3,6 +3,7 @@ import { NgModule } from "@angular/core";
|
||||
import { LooseComponentsModule } from "../../shared/loose-components.module";
|
||||
import { SharedModule } from "../../shared/shared.module";
|
||||
import { OrganizationBadgeModule } from "../../vault/organization-badge/organization-badge.module";
|
||||
import { PipesModule } from "../../vault/pipes/pipes.module";
|
||||
|
||||
import { VaultFilterModule } from "./vault-filter/vault-filter.module";
|
||||
import { VaultItemsComponent } from "./vault-items.component";
|
||||
@@ -16,6 +17,7 @@ import { VaultComponent } from "./vault.component";
|
||||
SharedModule,
|
||||
LooseComponentsModule,
|
||||
OrganizationBadgeModule,
|
||||
PipesModule,
|
||||
],
|
||||
declarations: [VaultComponent, VaultItemsComponent],
|
||||
exports: [VaultComponent],
|
||||
|
||||
@@ -30,7 +30,7 @@ export class OrganizationOptionsComponent implements OnInit, OnDestroy {
|
||||
private destroy$ = new Subject<void>();
|
||||
|
||||
constructor(
|
||||
@Inject(OptionsInput) private organization: OrganizationFilter,
|
||||
@Inject(OptionsInput) protected organization: OrganizationFilter,
|
||||
private platformUtilsService: PlatformUtilsService,
|
||||
private i18nService: I18nService,
|
||||
private apiService: ApiService,
|
||||
@@ -58,7 +58,7 @@ export class OrganizationOptionsComponent implements OnInit, OnDestroy {
|
||||
this.destroy$.complete();
|
||||
}
|
||||
|
||||
allowEnrollmentChanges(org: Organization): boolean {
|
||||
allowEnrollmentChanges(org: OrganizationFilter): boolean {
|
||||
if (org.usePolicies && org.useResetPassword && org.hasPublicAndPrivateKeys) {
|
||||
const policy = this.policies.find((p) => p.organizationId === org.id);
|
||||
if (policy != null && policy.enabled) {
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
placeholder="{{ searchPlaceholder | i18n }}"
|
||||
id="search"
|
||||
class="form-control"
|
||||
(input)="searchTextChanged($event.target.value)"
|
||||
(input)="searchTextChanged($any($event.target).value)"
|
||||
autocomplete="off"
|
||||
appAutofocus
|
||||
/>
|
||||
|
||||
@@ -36,7 +36,7 @@ export class VaultFilterComponent implements OnInit, OnDestroy {
|
||||
@Output() activeFilterChanged = new EventEmitter<VaultFilter>();
|
||||
@Output() onSearchTextChanged = new EventEmitter<string>();
|
||||
@Output() onAddFolder = new EventEmitter<never>();
|
||||
@Output() onEditFolder = new EventEmitter<FolderView>();
|
||||
@Output() onEditFolder = new EventEmitter<FolderFilter>();
|
||||
|
||||
isLoaded = false;
|
||||
searchText = "";
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
<button
|
||||
class="filter-button"
|
||||
appA11yTitle="{{ 'vault' | i18n }}: {{ f.node.name | i18n }}"
|
||||
[ngClass]="{ 'disabled-organization': isOrganization && !f.node.enabled }"
|
||||
[ngClass]="{ 'disabled-organization': isOrganizationFilter && !f.node.enabled }"
|
||||
(click)="onFilterSelect(f)"
|
||||
>
|
||||
<i
|
||||
@@ -96,7 +96,7 @@
|
||||
<i
|
||||
*ngIf="isOrganizationFilter && !f.node.enabled"
|
||||
class="org-options bwi bwi-fw bwi-exclamation-triangle text-danger"
|
||||
aria-label="{{ 'organizationIsDisabled' | i18n }}"
|
||||
[attr.aria-label]="'organizationIsDisabled' | i18n"
|
||||
appA11yTitle="{{ 'organizationIsDisabled' | i18n }}"
|
||||
></i
|
||||
><ng-container *ngIf="optionsInfo && !f.node.hideOptions"
|
||||
|
||||
Reference in New Issue
Block a user