Remove redundant status from single opt-in list subscriptions on the UI. Closes #741.

This commit is contained in:
Kailash Nadh 2022-03-10 19:30:28 +05:30
parent 8f45abec27
commit f9854bc54b
2 changed files with 4 additions and 2 deletions

View file

@ -8,7 +8,7 @@
:closable="true"
:data-id="l.id"
@close="removeList(l.id)" class="list">
{{ l.name }} <sup>{{ l.subscriptionStatus }}</sup>
{{ l.name }} <sup v-if="l.optin === 'double'">{{ l.subscriptionStatus }}</sup>
</b-tag>
</b-taglist>
</div>

View file

@ -133,7 +133,9 @@
v-bind:key="l.id" style="padding-right:0.5em;">
<b-tag :class="l.subscriptionStatus" size="is-small" :key="l.id">
{{ l.name }}
<sup>{{ $t('subscribers.status.'+ l.subscriptionStatus) }}</sup>
<sup v-if="l.optin === 'double'">
{{ $t(`subscribers.status.${l.subscriptionStatus}`) }}
</sup>
</b-tag>
</router-link>
</template>