@@ -5,6 +5,7 @@ const route = useRoute();
|
||||
const slug = route.params.slug as string;
|
||||
|
||||
const { data, refresh, error } = await useFetch<PotView>(`/api/pots/${slug}`);
|
||||
const { confirm } = useConfirm();
|
||||
|
||||
const adding = ref(false);
|
||||
const removingId = ref<number | null>(null);
|
||||
@@ -24,7 +25,7 @@ async function addParticipant(participantName: string) {
|
||||
}
|
||||
|
||||
async function removeParticipant(participant: { id: number; name: string }) {
|
||||
if (!window.confirm(`Remove ${participant.name} from this Pot?`)) return;
|
||||
if (!confirm(`Remove ${participant.name} from this Pot?`)) return;
|
||||
|
||||
removeError.value = '';
|
||||
removingId.value = participant.id;
|
||||
|
||||
Reference in New Issue
Block a user