Skip to content
Snippets Groups Projects
Commit 4caf90d5 authored by xaralis's avatar xaralis Committed by jan.bednarik
Browse files

fix(district): only show "Show more" button when there is actually something...

fix(district): only show "Show more" button when there is actually something more to show on campaign detail
parent 87857428
No related branches found
No related tags found
2 merge requests!532fix(district): only show "Show more" button when there is actually something...,!531fix(district): only show "Show more" button when there is actually something...
Pipeline #8314 passed
......@@ -26,8 +26,7 @@
<div>
<ui-view-provider :initial="{fullCandidateTable: false}" v-slot="{ isCurrentView, setView }">
<div class="candidate-table pt-8 container-padding--zero lg:container-padding--auto"
:class="{'candidate-table--fadeout': !isCurrentView('fullCandidateTable')}">
<div class="candidate-table pt-8 container-padding--zero lg:container-padding--auto" :class="{'candidate-table--fadeout': !isCurrentView('fullCandidateTable')}">
{% for person_page in self.candidate_list %}
{# Záměrně neomezuju list přes indexy, ale ifuju, abych si držel counter pro snippet #}
{% if forloop.counter > self.candidate_list_big_count and forloop.counter <= self.candidate_list_shown_count %}
......@@ -44,14 +43,15 @@
</template>
</div>
{% if self.candidate_list|length > self.candidate_list_big_count %}
<div class="text-center pt-8" v-if="!isCurrentView('fullCandidateTable')">
<button class="btn btn--icon text-xl btn--black btn--hoveractive"
@click="setView('fullCandidateTable', true)">
<button class="btn btn--icon text-xl btn--black btn--hoveractive" @click="setView('fullCandidateTable', true)">
<div class="btn__body-wrap">
<div class="btn__body ">Zobrazit vše</div>
<div class="btn__icon "><i class="ico--chevron-right"></i></div>
</div>
</button>
</div>
{% endif %}
</ui-view-provider>
</div>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment