try to fix
This commit is contained in:
parent
c81932d383
commit
f88d54baa4
@ -5,13 +5,14 @@ interface Feedback {
|
|||||||
message: string;
|
message: string;
|
||||||
feedbackType?: string;
|
feedbackType?: string;
|
||||||
contactEmail?: string;
|
contactEmail?: string;
|
||||||
|
anonymous: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
const loading = ref(false);
|
const loading = ref(false);
|
||||||
const error = ref<unknown>(null);
|
const error = ref<unknown>(null);
|
||||||
const success = ref(false);
|
const success = ref(false);
|
||||||
|
|
||||||
const feedback = reactive<Feedback>({ message: "", contactEmail: "" });
|
const feedback = reactive<Feedback>({ message: "", anonymous: false,contactEmail: "" });
|
||||||
|
|
||||||
const feedbackOptions = [
|
const feedbackOptions = [
|
||||||
{ label: "🐞 Bug", value: "bug" },
|
{ label: "🐞 Bug", value: "bug" },
|
||||||
@ -37,6 +38,7 @@ async function handleSubmit(type?: string) {
|
|||||||
const body: Feedback = {
|
const body: Feedback = {
|
||||||
message: feedback.message,
|
message: feedback.message,
|
||||||
feedbackType: feedback.feedbackType,
|
feedbackType: feedback.feedbackType,
|
||||||
|
anonymous: feedback.anonymous,
|
||||||
contactEmail: feedback.contactEmail,
|
contactEmail: feedback.contactEmail,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user