2026-05-23 19:57:28 +03:30
|
|
|
import { PosInfoStore } from '@/domains/pos/store';
|
2026-05-12 19:58:53 +03:30
|
|
|
import { AppCardComponent } from '@/shared/components';
|
2026-05-23 19:57:28 +03:30
|
|
|
import { Component, computed, inject } from '@angular/core';
|
2026-05-12 19:58:53 +03:30
|
|
|
import { Router } from '@angular/router';
|
|
|
|
|
import { Message } from 'primeng/message';
|
2026-05-23 19:57:28 +03:30
|
|
|
import { PosConfigGoldPriceFormComponent } from '../components/goldPrice/form.component';
|
2026-05-12 19:58:53 +03:30
|
|
|
import { PosConfigPrintFormComponent } from '../components/print/form.component';
|
|
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
|
selector: 'pos-config-page',
|
|
|
|
|
templateUrl: './root.component.html',
|
2026-05-23 19:57:28 +03:30
|
|
|
imports: [
|
|
|
|
|
PosConfigPrintFormComponent,
|
|
|
|
|
AppCardComponent,
|
|
|
|
|
Message,
|
|
|
|
|
PosConfigGoldPriceFormComponent,
|
|
|
|
|
],
|
2026-05-12 19:58:53 +03:30
|
|
|
})
|
|
|
|
|
export class PosConfigPageComponent {
|
|
|
|
|
private readonly router = inject(Router);
|
2026-05-23 19:57:28 +03:30
|
|
|
private readonly posInfoStore = inject(PosInfoStore);
|
|
|
|
|
|
|
|
|
|
readonly info = computed(() => this.posInfoStore.entity());
|
|
|
|
|
|
2026-05-12 19:58:53 +03:30
|
|
|
returnToMainPage() {
|
|
|
|
|
this.router.navigateByUrl('/');
|
|
|
|
|
}
|
|
|
|
|
}
|