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
File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
src/routes/(authenticated)/dashboard/[conferenceId] Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 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 }
Original file line number Diff line number Diff line change 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' ;
7268 ` );
7369
7470 const handlePresenceChange = async (e : Event ) => {
75- updateQuery .mutate ({
71+ await updateQuery .mutate ({
7672 where: {
7773 conferenceId_userId: {
7874 conferenceId: conference .id ,
8379 plansOwnAttendenceAtConference: (e .target as HTMLInputElement ).checked
8480 }
8581 });
82+ // TODO does not update the UI after fetching
8683 };
8784 </script >
8885
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 }
You can’t perform that action at this time.
0 commit comments