test: fix histoire configuration
Nearly Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -7,8 +7,8 @@
|
||||
v-model:actor-filter="actorFilter"
|
||||
:groupMemberships="[]"
|
||||
:current-actor="currentActor"
|
||||
@update:actor-filter="hstEvent('Actor Filter updated', $event)"
|
||||
@update:model-value="hstEvent('Selected actor updated', $event)"
|
||||
@update:actor-filter="logEvent('Actor Filter updated', $event)"
|
||||
@update:model-value="logEvent('Selected actor updated', $event)"
|
||||
/>
|
||||
</Variant>
|
||||
</Story>
|
||||
@@ -18,7 +18,7 @@ import OrganizerPicker from "./OrganizerPicker.vue";
|
||||
import { createMemoryHistory, createRouter } from "vue-router";
|
||||
import { reactive, ref } from "vue";
|
||||
import { ActorType } from "@/types/enums";
|
||||
import { hstEvent } from "histoire/client";
|
||||
import { logEvent } from "histoire/client";
|
||||
|
||||
const currentActor = reactive({
|
||||
id: "59",
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
<Variant>
|
||||
<OrganizerPickerWrapper
|
||||
v-model="actor"
|
||||
@update:model-value="hstEvent('Value', $event)"
|
||||
@update:contacts="hstEvent('Contacts', $event)"
|
||||
@update:model-value="logEvent('Value', $event)"
|
||||
@update:contacts="logEvent('Contacts', $event)"
|
||||
/>
|
||||
</Variant>
|
||||
</Story>
|
||||
@@ -19,7 +19,7 @@ import { PERSON_GROUP_MEMBERSHIPS } from "@/graphql/actor";
|
||||
import { createMemoryHistory, createRouter } from "vue-router";
|
||||
import { IDENTITIES } from "@/graphql/actor";
|
||||
import { reactive } from "vue";
|
||||
import { hstEvent } from "histoire/client";
|
||||
import { logEvent } from "histoire/client";
|
||||
|
||||
const actor = reactive({
|
||||
id: "5",
|
||||
|
||||
@@ -14,9 +14,9 @@
|
||||
:current-actor="currentActor"
|
||||
:participation="undefined"
|
||||
:identities="identities"
|
||||
@join-event="hstEvent('Join event', $event)"
|
||||
@join-modal="hstEvent('Join modal', $event)"
|
||||
@confirm-leave="hstEvent('Confirm leave', $event)"
|
||||
@join-event="logEvent('Join event', $event)"
|
||||
@join-modal="logEvent('Join modal', $event)"
|
||||
@confirm-leave="logEvent('Confirm leave', $event)"
|
||||
/>
|
||||
</Variant>
|
||||
<Variant title="Basic with confirmation">
|
||||
@@ -26,9 +26,9 @@
|
||||
:participation="undefined"
|
||||
:identities="identities"
|
||||
@join-event-with-confirmation="
|
||||
hstEvent('Join Event with confirmation', $event)
|
||||
logEvent('Join Event with confirmation', $event)
|
||||
"
|
||||
@join-modal="hstEvent('Join modal', $event)"
|
||||
@join-modal="logEvent('Join modal', $event)"
|
||||
/>
|
||||
</Variant>
|
||||
<Variant title="Participating">
|
||||
@@ -37,7 +37,7 @@
|
||||
:current-actor="currentActor"
|
||||
:participation="participation"
|
||||
:identities="identities"
|
||||
@confirm-leave="hstEvent('Confirm leave', $event)"
|
||||
@confirm-leave="logEvent('Confirm leave', $event)"
|
||||
/>
|
||||
</Variant>
|
||||
<Variant title="Pending approval">
|
||||
@@ -49,7 +49,7 @@
|
||||
role: ParticipantRole.NOT_APPROVED,
|
||||
}"
|
||||
:identities="identities"
|
||||
@confirm-leave="hstEvent('Confirm leave', $event)"
|
||||
@confirm-leave="logEvent('Confirm leave', $event)"
|
||||
/>
|
||||
</Variant>
|
||||
<Variant title="Rejected">
|
||||
@@ -61,7 +61,7 @@
|
||||
role: ParticipantRole.REJECTED,
|
||||
}"
|
||||
:identities="identities"
|
||||
@confirm-leave="hstEvent('Confirm leave', $event)"
|
||||
@confirm-leave="logEvent('Confirm leave', $event)"
|
||||
/>
|
||||
</Variant>
|
||||
</Story>
|
||||
@@ -72,7 +72,7 @@ import { IPerson } from "@/types/actor";
|
||||
import { EventJoinOptions, ParticipantRole } from "@/types/enums";
|
||||
import { IEvent } from "@/types/event.model";
|
||||
import ParticipationButton from "./ParticipationButton.vue";
|
||||
import { hstEvent } from "histoire/client";
|
||||
import { logEvent } from "histoire/client";
|
||||
import { IParticipant } from "@/types/participant.model";
|
||||
|
||||
const emptyCurrentActor: IPerson = {};
|
||||
|
||||
Reference in New Issue
Block a user