Feature/add data providers management to admin control panel (#3950)
* Add data providers management to admin control panel * Update changelogpull/3958/head
parent
68cb4b27d1
commit
a414cfab52
@ -0,0 +1,39 @@
|
||||
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();
|
||||
}
|
||||
}
|
@ -0,0 +1,2 @@
|
||||
:host {
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
export interface GhostfolioPremiumApiDialogParams {
|
||||
deviceType: string;
|
||||
pricingUrl: string;
|
||||
}
|
Loading…
Reference in new issue