/** * Copyright since 2025 Mifos Initiative * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /** Angular Imports */ import { Component, inject } from '@angular/core'; import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog'; import { MatButtonModule } from '@angular/material/button'; import { FaIconComponent } from '@fortawesome/angular-fontawesome'; /** * Something the clerk needs told, with nothing to decide. * * The platform's confirmation dialog asks a question - Cancel or Confirm - and its buttons imply a * choice. Used for a plain statement it leaves the clerk hunting for what they are agreeing to, and * "Cancel" reads as though the thing being described could be undone. The error dialog has the right * single button but dresses the message in red, which turns "this agent has no parties" into a fault. * * So: one button, and the message stands on its own. */ @Component({ selector: 'mifosx-notice-dialog', standalone: true, imports: [ MatDialogModule, MatButtonModule, FaIconComponent ], templateUrl: './notice-dialog.component.html', styleUrls: ['./notice-dialog.component.scss'] }) export class NoticeDialogComponent { /** { heading, message } */ data = inject(MAT_DIALOG_DATA); }