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