WebApi + ClientApp, GraphQL, Reflection
This commit is contained in:
17
Events-WebApi/Events.ClientApp/src/state/catalogState.ts
Normal file
17
Events-WebApi/Events.ClientApp/src/state/catalogState.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { ref } from 'vue';
|
||||
|
||||
export const eventsCatalogVersion = ref(0);
|
||||
export const sportsCatalogVersion = ref(0);
|
||||
export const peopleCatalogVersion = ref(0);
|
||||
|
||||
export function touchEventsCatalog() {
|
||||
eventsCatalogVersion.value += 1;
|
||||
}
|
||||
|
||||
export function touchSportsCatalog() {
|
||||
sportsCatalogVersion.value += 1;
|
||||
}
|
||||
|
||||
export function touchPeopleCatalog() {
|
||||
peopleCatalogVersion.value += 1;
|
||||
}
|
||||
15
Events-WebApi/Events.ClientApp/src/state/uiState.ts
Normal file
15
Events-WebApi/Events.ClientApp/src/state/uiState.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { ref } from 'vue';
|
||||
|
||||
export const activeTab = ref('sports');
|
||||
export const pendingRegistrationEventId = ref<number | null>(null);
|
||||
|
||||
export function openRegistrationCreateForEvent(eventId: number) {
|
||||
pendingRegistrationEventId.value = eventId;
|
||||
activeTab.value = 'registrations';
|
||||
}
|
||||
|
||||
export function consumePendingRegistrationEventId() {
|
||||
const eventId = pendingRegistrationEventId.value;
|
||||
pendingRegistrationEventId.value = null;
|
||||
return eventId;
|
||||
}
|
||||
Reference in New Issue
Block a user