Skip to content

Commit

Permalink
Lintf, replaced v-html with v-text
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee0z committed Jan 13, 2024
1 parent d6a83a9 commit afad700
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions resources/js/Pages/City/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const toast = useToast()
const page = usePage()
const isAuth = computed(() => page.props.auth.isAuth)
const regulationsOpen = ref(false)
const rules = reactive({pl:'<i class="text-gray-400">ładowanie informacji o zasadach, proszę czekać...</i>', en:'<i class="text-gray-400">loading info about rules, please wait...</i>'})
const rules = reactive({ pl: '<i class="text-gray-400">ładowanie informacji o zasadach, proszę czekać...</i>', en: '<i class="text-gray-400">loading info about rules, please wait...</i>' })
fetchRegulations()
const props = defineProps({
Expand Down Expand Up @@ -135,7 +135,8 @@ function createOpinion() {
<div class="my-3 flex cursor-pointer items-center text-2xl font-bold text-gray-700" @click="toggleRegulations()">
{{ __('Rules') }} <ArrowDownIcon :class="regulationsOpen ? 'rotated' : ''" class="absolute right-3 inline-block h-6 w-6 transition-all" />
</div>
<div :class="regulationsOpen?'show':''" class="overflow-scroll transition" v-html="currentRules">
<div :class="regulationsOpen?'show':''" class="overflow-scroll transition">
{{ currentRules }}
</div>
</div>
<form v-if="isAuth" class="mt-8 flex flex-col" @submit.prevent="createOpinion">
Expand Down

0 comments on commit afad700

Please sign in to comment.