style: linter and prettier
This commit is contained in:
parent
212bee3bd2
commit
15a92b984c
5 changed files with 15 additions and 15 deletions
|
@ -1,9 +1,9 @@
|
|||
@if (isOpen){
|
||||
@if (isOpen) {
|
||||
<div class="modal-bg">
|
||||
<div class="modal-card">
|
||||
<h2 class="modal-heading">Guthaben aufladen</h2>
|
||||
<form [formGroup]="form">
|
||||
@if (errorMsg){
|
||||
@if (errorMsg) {
|
||||
{{ errorMsg }}
|
||||
}
|
||||
<div class="mb-2">
|
||||
|
|
|
@ -71,7 +71,10 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<app-confirmation [successful]="isDepositSuccessful" (close)="closeDepositConfirmationModal()"></app-confirmation>
|
||||
<app-confirmation
|
||||
[successful]="isDepositSuccessful"
|
||||
(close)="closeDepositConfirmationModal()"
|
||||
></app-confirmation>
|
||||
|
||||
<div class="card p-4">
|
||||
<h3 class="section-heading text-xl mb-4">Letzte Transaktionen</h3>
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import {ChangeDetectionStrategy, Component, OnInit} from '@angular/core';
|
||||
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
|
||||
import { NavbarComponent } from '../../shared/components/navbar/navbar.component';
|
||||
import { CurrencyPipe, NgFor } from '@angular/common';
|
||||
import { Game } from '../../model/Game';
|
||||
import { Transaction } from '../../model/Transaction';
|
||||
import { DepositComponent } from '../deposit/deposit.component';
|
||||
import {ConfirmationComponent} from "../../shared/components/confirmation/confirmation.component";
|
||||
import {ActivatedRoute} from "@angular/router";
|
||||
import { ConfirmationComponent } from '../../shared/components/confirmation/confirmation.component';
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
|
||||
@Component({
|
||||
selector: 'app-homepage',
|
||||
|
|
|
@ -3,12 +3,9 @@
|
|||
<div class="modal-card">
|
||||
<h2 class="modal-heading text-center">Bestätigung</h2>
|
||||
<p class="py-2">Der Vorgang wurde erfolgreich abgeschlossen.</p>
|
||||
<button
|
||||
type="button"
|
||||
class="button-primary w-full py-2 my-auto"
|
||||
(click)="closeModal()"
|
||||
>Schließen</button>
|
||||
<button type="button" class="button-primary w-full py-2 my-auto" (click)="closeModal()">
|
||||
Schließen
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import {Component, EventEmitter, Input, Output} from '@angular/core';
|
||||
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-confirmation',
|
||||
|
@ -7,10 +7,10 @@ import {Component, EventEmitter, Input, Output} from '@angular/core';
|
|||
templateUrl: './confirmation.component.html',
|
||||
})
|
||||
export class ConfirmationComponent {
|
||||
@Input() successful: boolean = true;
|
||||
@Input() successful = true;
|
||||
@Output() close = new EventEmitter<void>();
|
||||
|
||||
public closeModal(){
|
||||
public closeModal() {
|
||||
this.close.emit();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue