v1.0.9 upd connections instruct and upd backend realisation
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
import PaymentPage from '$lib/common/ui/PaymentPage.svelte';
|
||||
import { plFiles, plCopies } from '$lib/common/utils/pricing.util.js';
|
||||
import NetworkGate from '$lib/common/ui/NetworkGate.svelte';
|
||||
import { detectNetwork } from '$lib/common/services/network.service.js';
|
||||
import { isLocalNetwork } from '$lib/common/services/network.service.js';
|
||||
|
||||
let { onBack = () => {} } = $props();
|
||||
const store = createPrintStore();
|
||||
@ -47,7 +47,7 @@
|
||||
async function handleConfirmPayment() {
|
||||
if (printNetGate === 'checking') return;
|
||||
printNetGate = 'checking';
|
||||
const net = await detectNetwork();
|
||||
const net = await isLocalNetwork();
|
||||
if (net === 'local') {
|
||||
printNetGate = null;
|
||||
store.submitPrint();
|
||||
@ -77,7 +77,7 @@
|
||||
<div class="page-container">
|
||||
<div class="net-checking">
|
||||
<div class="net-spinner"></div>
|
||||
<p>Проверка подключения к принтеру…</p>
|
||||
<p>Проверка подключения…</p>
|
||||
</div>
|
||||
</div>
|
||||
{:else}
|
||||
|
||||
Reference in New Issue
Block a user