add badge, count open contribution on tab open

This commit is contained in:
ogerly 2023-02-02 07:53:29 +01:00
parent b9f4eb5d84
commit bfcef73636

View File

@ -3,7 +3,13 @@
<div class="creation-confirm">
<div>
<b-tabs content-class="mt-3" fill>
<b-tab :title="$t('contributions.open')" active>
<b-tab active>
<template #title>
{{ $t('contributions.open') }}
<b-badge v-if="$store.state.openCreations > 0" variant="danger">
{{ $store.state.openCreations }}
</b-badge>
</template>
<open-creations-table
class="mt-4"
:items="pendingCreations"