mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 08:53:48 +01:00
Add showPopup, isGoodNews to announcement setting UI
This commit is contained in:
parent
e2d4781610
commit
1b8b6a8dd0
@ -22,6 +22,17 @@
|
||||
<MkInput v-model="announcement.imageUrl">
|
||||
<template #label>{{ i18n.ts.imageUrl }}</template>
|
||||
</MkInput>
|
||||
<MkSwitch
|
||||
v-model="announcement.showPopup"
|
||||
class="_formBlock"
|
||||
>{{ i18n.ts.showPopup }}</MkSwitch
|
||||
>
|
||||
<MkSwitch
|
||||
v-if="announcement.showPopup"
|
||||
v-model="announcement.isGoodNews"
|
||||
class="_formBlock"
|
||||
>{{ i18n.ts.isGoodNews }}</MkSwitch
|
||||
>
|
||||
<p v-if="announcement.reads">
|
||||
{{
|
||||
i18n.t("nUsersRead", { n: announcement.reads })
|
||||
@ -57,6 +68,7 @@
|
||||
import {} from "vue";
|
||||
import MkButton from "@/components/MkButton.vue";
|
||||
import MkInput from "@/components/form/input.vue";
|
||||
import MkSwitch from "@/components/form/switch.vue";
|
||||
import MkTextarea from "@/components/form/textarea.vue";
|
||||
import * as os from "@/os";
|
||||
import { i18n } from "@/i18n";
|
||||
@ -74,6 +86,8 @@ function add() {
|
||||
title: "",
|
||||
text: "",
|
||||
imageUrl: null,
|
||||
showPopup: false,
|
||||
isGoodNews: false,
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user