1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-01-02 18:17:46 +01:00

Rename ErrorList to ErrorListItem

This commit is contained in:
Daniel James Smith 2023-09-05 21:56:28 +02:00
parent 685f870ce6
commit a7dd643710
No known key found for this signature in database
GPG Key ID: DA2E2EC600E1289B

View File

@ -3,7 +3,7 @@ import { Component, Inject, OnInit } from "@angular/core";
import { TableDataSource } from "@bitwarden/components"; import { TableDataSource } from "@bitwarden/components";
export interface ErrorList { export interface ErrorListItem {
type: string; type: string;
message: string; message: string;
} }
@ -13,7 +13,7 @@ export interface ErrorList {
templateUrl: "./import-error-dialog.component.html", templateUrl: "./import-error-dialog.component.html",
}) })
export class ImportErrorDialogComponent implements OnInit { export class ImportErrorDialogComponent implements OnInit {
protected dataSource = new TableDataSource<ErrorList>(); protected dataSource = new TableDataSource<ErrorListItem>();
constructor(public dialogRef: DialogRef, @Inject(DIALOG_DATA) public data: Error) {} constructor(public dialogRef: DialogRef, @Inject(DIALOG_DATA) public data: Error) {}
@ -24,7 +24,7 @@ export class ImportErrorDialogComponent implements OnInit {
return; return;
} }
const data: ErrorList[] = []; const data: ErrorListItem[] = [];
split.forEach((line) => { split.forEach((line) => {
data.push({ type: "", message: line }); data.push({ type: "", message: line });
}); });