mirror of https://github.com/ghostfolio/ghostfolio
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.2 KiB
39 lines
1.2 KiB
import { GfPremiumIndicatorComponent } from '@ghostfolio/ui/premium-indicator';
|
|
|
|
import { CommonModule } from '@angular/common';
|
|
import { Component, Inject } from '@angular/core';
|
|
import { MatButtonModule } from '@angular/material/button';
|
|
import {
|
|
MAT_DIALOG_DATA,
|
|
MatDialogModule,
|
|
MatDialogRef
|
|
} from '@angular/material/dialog';
|
|
|
|
import { GfDialogFooterModule } from '../../dialog-footer/dialog-footer.module';
|
|
import { GfDialogHeaderModule } from '../../dialog-header/dialog-header.module';
|
|
import { GhostfolioPremiumApiDialogParams } from './interfaces/interfaces';
|
|
|
|
@Component({
|
|
imports: [
|
|
CommonModule,
|
|
GfDialogFooterModule,
|
|
GfDialogHeaderModule,
|
|
GfPremiumIndicatorComponent,
|
|
MatButtonModule,
|
|
MatDialogModule
|
|
],
|
|
selector: 'gf-ghostfolio-premium-api-dialog',
|
|
standalone: true,
|
|
styleUrls: ['./ghostfolio-premium-api-dialog.scss'],
|
|
templateUrl: './ghostfolio-premium-api-dialog.html'
|
|
})
|
|
export class GfGhostfolioPremiumApiDialogComponent {
|
|
public constructor(
|
|
@Inject(MAT_DIALOG_DATA) public data: GhostfolioPremiumApiDialogParams,
|
|
public dialogRef: MatDialogRef<GfGhostfolioPremiumApiDialogComponent>
|
|
) {}
|
|
|
|
public onCancel() {
|
|
this.dialogRef.close();
|
|
}
|
|
}
|
|
|