34 lines
1.2 KiB
TypeScript
34 lines
1.2 KiB
TypeScript
import { PosInfoStore } from '@/domains/pos/store';
|
|
import { Component, computed, inject } from '@angular/core';
|
|
import { Router } from '@angular/router';
|
|
import { Message } from 'primeng/message';
|
|
import { TabsModule } from 'primeng/tabs';
|
|
import { PosConfigGoldPriceFormComponent } from '../components/goldPrice/form.component';
|
|
import { PosConfigPrintFormComponent } from '../components/print/form.component';
|
|
import { PosConfigRapidInvoiceFormComponent } from '../components/rapidInvoice/form.component';
|
|
import { PosConfigSendToFiscalActivationFormComponent } from '../components/sendToFiscalActivation/form.component';
|
|
|
|
@Component({
|
|
selector: 'pos-config-page',
|
|
templateUrl: './root.component.html',
|
|
imports: [
|
|
PosConfigPrintFormComponent,
|
|
Message,
|
|
TabsModule,
|
|
PosConfigGoldPriceFormComponent,
|
|
PosConfigRapidInvoiceFormComponent,
|
|
PosConfigSendToFiscalActivationFormComponent,
|
|
],
|
|
})
|
|
export class PosConfigPageComponent {
|
|
private readonly router = inject(Router);
|
|
private readonly posInfoStore = inject(PosInfoStore);
|
|
|
|
readonly info = computed(() => this.posInfoStore.entity());
|
|
activeTabIndex = 0;
|
|
|
|
returnToMainPage() {
|
|
this.router.navigateByUrl('/');
|
|
}
|
|
}
|