tickera-angular-components 0.0.1-dev.176 → 0.0.1-dev.177
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10028,12 +10028,10 @@ class TicketQrComponent {
|
|
|
10028
10028
|
if (this.isFetching)
|
|
10029
10029
|
return;
|
|
10030
10030
|
this.isFetching = true;
|
|
10031
|
-
const
|
|
10032
|
-
? this.ticketQrService.fetchMyQrToken
|
|
10033
|
-
: this.ticketQrService.fetchQrToken;
|
|
10034
|
-
|
|
10035
|
-
.pipe(takeUntil$1(this.destroy$))
|
|
10036
|
-
.subscribe({
|
|
10031
|
+
const request = this.isCustomer
|
|
10032
|
+
? this.ticketQrService.fetchMyQrToken(this.ticketUuid)
|
|
10033
|
+
: this.ticketQrService.fetchQrToken(this.ticketUuid);
|
|
10034
|
+
request.pipe(takeUntil$1(this.destroy$)).subscribe({
|
|
10037
10035
|
next: (res) => {
|
|
10038
10036
|
this.isFetching = false;
|
|
10039
10037
|
this.loading.set(false);
|
|
@@ -10055,12 +10053,10 @@ class TicketQrComponent {
|
|
|
10055
10053
|
return;
|
|
10056
10054
|
this.refreshing.set(true);
|
|
10057
10055
|
this.isFetching = true;
|
|
10058
|
-
const
|
|
10059
|
-
? this.ticketQrService.fetchMyQrToken
|
|
10060
|
-
: this.ticketQrService.fetchQrToken;
|
|
10061
|
-
|
|
10062
|
-
.pipe(takeUntil$1(this.destroy$))
|
|
10063
|
-
.subscribe({
|
|
10056
|
+
const refreshRequest = this.isCustomer
|
|
10057
|
+
? this.ticketQrService.fetchMyQrToken(this.ticketUuid)
|
|
10058
|
+
: this.ticketQrService.fetchQrToken(this.ticketUuid);
|
|
10059
|
+
refreshRequest.pipe(takeUntil$1(this.destroy$)).subscribe({
|
|
10064
10060
|
next: (res) => {
|
|
10065
10061
|
this.isFetching = false;
|
|
10066
10062
|
this.renderQr(res.data.token);
|