Skip to content

Commit

Permalink
remove strict types from DeleteAttachmentComponent
Browse files Browse the repository at this point in the history
- add bang for required types
- refactor title to be an empty string
  • Loading branch information
nick-livefront committed Dec 20, 2024
1 parent 12c46ea commit 1be99f1
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// FIXME: Update this file to be type safe and remove this and next line
// @ts-strict-ignore
import { CommonModule } from "@angular/common";
import { Component, EventEmitter, Input, Output } from "@angular/core";

Expand All @@ -24,10 +22,10 @@ import {
})
export class DeleteAttachmentComponent {
/** Id of the cipher associated with the attachment */
@Input({ required: true }) cipherId: string;
@Input({ required: true }) cipherId!: string;

/** The attachment that is can be deleted */
@Input({ required: true }) attachment: AttachmentView;
@Input({ required: true }) attachment!: AttachmentView;

/** Emits when the attachment is successfully deleted */
@Output() onDeletionSuccess = new EventEmitter<void>();
Expand Down Expand Up @@ -56,7 +54,7 @@ export class DeleteAttachmentComponent {

this.toastService.showToast({
variant: "success",
title: null,
title: "",
message: this.i18nService.t("deletedAttachment"),
});

Expand Down

0 comments on commit 1be99f1

Please sign in to comment.