WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 32eeafb

Browse files
committed
🐞 fix: Minor Bugfixes
1 parent a14af16 commit 32eeafb

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/routes/(authenticated)/dashboard/[conferenceId]/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
<ApplicationRejected />
6767
{/if}
6868
{:else if conferenceQueryData?.findUniqueConferenceSupervisor}
69-
{#if conference!.state !== 'PARTICIPANT_REGISTRATION' && conferenceQueryData.findUniqueConferenceSupervisor.delegations.filter((x) => !!x.assignedNation || !!x.assignedNonStateActor).length > 0}
69+
{#if (conference!.state !== 'PARTICIPANT_REGISTRATION' && conferenceQueryData.findUniqueConferenceSupervisor.delegations.filter((x) => !!x.assignedNation || !!x.assignedNonStateActor).length > 0) || conference!.state === 'PARTICIPANT_REGISTRATION'}
7070
<Supervisor
7171
user={data.user}
7272
conferenceData={conferenceQueryData}

src/routes/(authenticated)/dashboard/[conferenceId]/stages/Supervisor.svelte

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
import * as m from '$lib/paraglide/messages.js';
44
import GenericWidget from '$lib/components/DelegationStats/GenericWidget.svelte';
55
import { getFullTranslatedCountryNameFromISO3Code } from '$lib/services/nationTranslationHelper.svelte';
6-
import {
7-
graphql,
8-
type MyConferenceparticipationQuery$result,
9-
type OfflineUser$result
10-
} from '$houdini';
6+
import { graphql, type MyConferenceparticipationQuery$result } from '$houdini';
117
import type { StoresValues } from '$lib/services/storeExtractorType';
128
import TasksWrapper from '$lib/components/TasksAlert/TasksWrapper.svelte';
139
import TaskAlertCard from '$lib/components/TasksAlert/TaskAlertCard.svelte';
@@ -72,7 +68,7 @@
7268
`);
7369
7470
const handlePresenceChange = async (e: Event) => {
75-
updateQuery.mutate({
71+
await updateQuery.mutate({
7672
where: {
7773
conferenceId_userId: {
7874
conferenceId: conference.id,
@@ -83,6 +79,7 @@
8379
plansOwnAttendenceAtConference: (e.target as HTMLInputElement).checked
8480
}
8581
});
82+
//TODO does not update the UI after fetching
8683
};
8784
</script>
8885

@@ -122,7 +119,7 @@
122119
</p>
123120
</section>
124121

125-
{#if supervisor.plansOwnAttendenceAtConference}
122+
{#if supervisor.plansOwnAttendenceAtConference && conference.state !== 'PARTICIPANT_REGISTRATION'}
126123
<ConferenceStatusWidget
127124
conferenceId={conference!.id}
128125
userId={user.sub}

0 commit comments

Comments
 (0)