tempfix feedback
This commit is contained in:
parent
03d12317f6
commit
ea66ff6c03
@ -1,7 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { reactive, ref } from "vue";
|
import { reactive, ref } from "vue";
|
||||||
import { useRoute } from "vitepress";
|
import { useRoute } from "vitepress";
|
||||||
import { fetcher } from "itty-fetcher";
|
|
||||||
import type { FeedbackType } from "../../types/Feedback";
|
import type { FeedbackType } from "../../types/Feedback";
|
||||||
|
|
||||||
const loading = ref<boolean>(false);
|
const loading = ref<boolean>(false);
|
||||||
@ -14,7 +13,7 @@ const feedback = reactive<FeedbackType>({ message: "", contact: "" });
|
|||||||
const feedbackOptions = [
|
const feedbackOptions = [
|
||||||
{ label: "🐞 Bug", value: "bug" },
|
{ label: "🐞 Bug", value: "bug" },
|
||||||
{
|
{
|
||||||
label: "♻️ Suggestion",
|
label: "💡 Suggestion",
|
||||||
value: "suggestion",
|
value: "suggestion",
|
||||||
},
|
},
|
||||||
{ label: "📂 Other", value: "other" },
|
{ label: "📂 Other", value: "other" },
|
||||||
@ -100,7 +99,7 @@ async function handleSubmit(type?: FeedbackType["type"]) {
|
|||||||
<button
|
<button
|
||||||
type="submit"
|
type="submit"
|
||||||
class="btn btn-primary"
|
class="btn btn-primary"
|
||||||
:disabled="feedback.message.length > 10"
|
:disabled="feedback.message.length > 1000"
|
||||||
@click="handleSubmit()">
|
@click="handleSubmit()">
|
||||||
Submit
|
Submit
|
||||||
</button>
|
</button>
|
||||||
|
Loading…
Reference in New Issue
Block a user