mirror of
https://github.com/Terncode/pixel.horse.git
synced 2026-09-24 13:55:04 +02:00
28 lines
621 B
TypeScript
28 lines
621 B
TypeScript
import { Component } from '@angular/core';
|
|
import { faTimes } from '../../../client/icons';
|
|
import { InstallService } from '../../services/installService';
|
|
import { isMobile } from '../../../client/data';
|
|
|
|
@Component({
|
|
selector: 'install-button',
|
|
templateUrl: 'install-button.pug',
|
|
styleUrls: ['install-button.scss'],
|
|
})
|
|
export class InstallButton {
|
|
readonly closeIcon = faTimes;
|
|
constructor(private installService: InstallService) {
|
|
}
|
|
get canInstall() {
|
|
return false;
|
|
}
|
|
get isMobile() {
|
|
return isMobile;
|
|
}
|
|
install() {
|
|
this.installService.install();
|
|
}
|
|
dismiss() {
|
|
this.installService.dismiss();
|
|
}
|
|
}
|