Moved to Angular 20
Moved to Tailwind 4 Moved to Python 3.13 Enabled arm64/v8 Builds
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { Component, OnInit, inject } from '@angular/core';
|
||||
import { FormControl, FormGroup, ReactiveFormsModule } from '@angular/forms';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
@@ -14,7 +14,6 @@ import moment from 'moment';
|
||||
import { environment } from '../app.environment';
|
||||
import { AuthService } from '../auth/auth.service';
|
||||
import { ToasterService } from '../core/toaster.service';
|
||||
|
||||
import { SettingsService } from './settings.service';
|
||||
|
||||
@Component({
|
||||
@@ -33,6 +32,13 @@ import { SettingsService } from './settings.service';
|
||||
],
|
||||
})
|
||||
export class SettingsComponent implements OnInit {
|
||||
private route = inject(ActivatedRoute);
|
||||
private router = inject(Router);
|
||||
private dialog = inject(MatDialog);
|
||||
private toaster = inject(ToasterService);
|
||||
auth = inject(AuthService);
|
||||
private ser = inject(SettingsService);
|
||||
|
||||
prefillCustomerDiscount = true;
|
||||
version: string;
|
||||
maintenanceForm: FormGroup<{
|
||||
@@ -43,14 +49,7 @@ export class SettingsComponent implements OnInit {
|
||||
beerFile: File | null = null;
|
||||
saleFile: File | null = null;
|
||||
|
||||
constructor(
|
||||
private route: ActivatedRoute,
|
||||
private router: Router,
|
||||
private dialog: MatDialog,
|
||||
private toaster: ToasterService,
|
||||
public auth: AuthService,
|
||||
private ser: SettingsService,
|
||||
) {
|
||||
constructor() {
|
||||
this.version = environment.version;
|
||||
this.maintenanceForm = new FormGroup({
|
||||
startDate: new FormControl(new Date(), { nonNullable: true }),
|
||||
|
||||
Reference in New Issue
Block a user