Make icons into vue components

This commit is contained in:
N-Pex 2025-05-08 13:10:06 +02:00
parent a97211afdf
commit 110394a40a
26 changed files with 209 additions and 91 deletions

View file

@ -22,8 +22,8 @@
>
<v-col cols="auto" class="ma-0 pa-0 poll-answer-title">{{ answer.text }} {{ answer.max }}</v-col>
<v-col v-if="answer.id == pollTentativeAnswer" cols="auto" class="ma-0 pa-0 poll-answer-title"
><v-img class="poll-check-icon" src="@/assets/icons/ic_check.svg"
/></v-col>
><v-icon class="poll-check-icon">$vuetify.icons.ic_check</v-icon>
</v-col>
<v-col
v-if="
pollIsClosed || (pollIsDisclosed && userHasVoted) || (pollIsAdmin && (userHasVoted || pollViewResults))
@ -71,7 +71,7 @@
{{ $t("poll_create.close_poll") }}
</div>
<div class="poll-status-closed clickable" v-else-if="pollIsAdmin && pollIsClosed" @click.stop="pollClose">
<img class="icon" src="@/assets/icons/ic_check_small.svg" />
<v-icon class="icon">$vuetify.icons.ic_check_small</v-icon>
{{ $t("poll_create.poll_status_closed") }}
</div>
</v-col>

View file

@ -22,8 +22,8 @@
>
<v-col cols="auto" class="ma-0 pa-0 poll-answer-title">{{ answer.text }} {{ answer.max }}</v-col>
<v-col v-if="answer.id == pollTentativeAnswer" cols="auto" class="ma-0 pa-0 poll-answer-title"
><v-img class="poll-check-icon" src="@/assets/icons/ic_check.svg"
/></v-col>
><v-icon class="poll-check-icon">$vuetify.icons.ic_check</v-icon>
</v-col>
<v-col
v-if="
pollIsClosed || (pollIsDisclosed && userHasVoted) || (pollIsAdmin && (userHasVoted || pollViewResults))
@ -71,7 +71,7 @@
{{ $t("poll_create.close_poll") }}
</div>
<div class="poll-status-closed clickable" v-else-if="pollIsAdmin && pollIsClosed" @click.stop="pollClose">
<img class="icon" src="@/assets/icons/ic_check_small.svg" />
<v-icon class="icon">$vuetify.icons.ic_check_small</v-icon>
{{ $t("poll_create.poll_status_closed") }}
</div>
</v-col>