changes
This commit is contained in:
@@ -33,6 +33,8 @@ interface CheckFastcheckResponse {
|
||||
styleUrl: './fastcheck-page.scss'
|
||||
})
|
||||
export class FastcheckPage {
|
||||
private readonly defaultPartnerId = 'fast-c202-4062-bcfb-8b4c8cc59adc';
|
||||
|
||||
private http = inject(HttpClient);
|
||||
private store = inject(FastcheckService);
|
||||
private i18n = inject(TranslationService);
|
||||
@@ -52,10 +54,8 @@ export class FastcheckPage {
|
||||
// Pass-through partner id from ?id= used by the "New" button link.
|
||||
partnerId = signal<string>('');
|
||||
newQrUrl = computed(() => {
|
||||
const id = this.partnerId();
|
||||
return id
|
||||
? `https://qr.vitanova.network/?id=${encodeURIComponent(id)}`
|
||||
: 'https://qr.vitanova.network/';
|
||||
const id = this.partnerId() || this.defaultPartnerId;
|
||||
return `https://qr.vitanova.network/?id=${encodeURIComponent(id)}`;
|
||||
});
|
||||
|
||||
popupOpen = signal<boolean>(false);
|
||||
@@ -107,8 +107,8 @@ export class FastcheckPage {
|
||||
|
||||
const params = new URLSearchParams(window.location.search);
|
||||
|
||||
// ?id=<partnerId> — just propagated to the "New" button URL.
|
||||
this.partnerId.set(params.get('id') ?? '');
|
||||
// ?id=<partnerId> — used by the "New" button URL; fallback to default id.
|
||||
this.partnerId.set(params.get('id') ?? this.defaultPartnerId);
|
||||
|
||||
// ?iid=xxxxxx-xxxxxx-xxxxxx — auto-fill and trigger lookup
|
||||
const iidParam = params.get('iid') ?? '';
|
||||
|
||||
Reference in New Issue
Block a user