-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathShowGeneratedCountPref.vue
46 lines (42 loc) · 1.29 KB
/
ShowGeneratedCountPref.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<script lang="ts" setup>
import { i18n } from "@/utils/i18n";
const hideLineCount = defineModel<boolean>("hideGeneratedLineCount", {
required: true,
});
function toggle() {
hideLineCount.value = !hideLineCount.value;
}
const { t } = i18n;
</script>
<template>
<li class="flex flex-col gap-4">
<div class="flex flex-col gap-2">
<p class="font-medium text-base-content text-lg">
{{ t("options.enabled.title") }}
</p>
<label class="text-base flex gap-4 items-center">
<input
class="checkbox checkbox-primary checkbox-sm ml-2"
type="checkbox"
:checked="!hideLineCount"
@change="toggle"
/>
<p>
{{ t("options.enabled.description1") }}
<span class="text-success font-medium">{{
t("options.enabled.description2")
}}</span>
{{ t("options.enabled.description3") }}
<span class="text-error font-medium">{{
t("options.enabled.description4")
}}</span
>{{ t("options.enabled.description5") }}
<span class="text-base-content text-opacity-50 font-medium">{{
t("options.enabled.description6")
}}</span>
{{ t("options.enabled.description7") }}
</p>
</label>
</div>
</li>
</template>