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.
34 lines
915 B
34 lines
915 B
import {
|
|
ChangeDetectionStrategy,
|
|
Component,
|
|
EventEmitter,
|
|
Input,
|
|
Output
|
|
} from '@angular/core';
|
|
import { MatButtonModule } from '@angular/material/button';
|
|
import { MatDialogModule } from '@angular/material/dialog';
|
|
import { IonIcon } from '@ionic/angular/standalone';
|
|
import { addIcons } from 'ionicons';
|
|
import { close } from 'ionicons/icons';
|
|
|
|
@Component({
|
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
host: { class: 'justify-content-center' },
|
|
imports: [IonIcon, MatButtonModule, MatDialogModule],
|
|
selector: 'gf-dialog-footer',
|
|
styleUrls: ['./dialog-footer.component.scss'],
|
|
templateUrl: './dialog-footer.component.html'
|
|
})
|
|
export class GfDialogFooterComponent {
|
|
@Input() deviceType: string;
|
|
|
|
@Output() closeButtonClicked = new EventEmitter<void>();
|
|
|
|
public constructor() {
|
|
addIcons({ close });
|
|
}
|
|
|
|
public onClickCloseButton() {
|
|
this.closeButtonClicked.emit();
|
|
}
|
|
}
|
|
|