Change where members info is retrieved in Group component: Fixes #11737 (#11886)

* Change where members info is retrieved in Group component.

In Group component, changes the place where members data is retrieved from the load function originally to within the watch group function, so that when group data has changed, the code will update the corresponding members data as well.

* Moving the code for loading members data from watcher to inside fetchGuilds function

* Complying with lint

Co-authored-by: kazekunGb <eynsan@yahoo.co.uk>
Co-authored-by: Matteo Pagliazzi <matteopagliazzi@gmail.com>
This commit is contained in:
tsukimi2
2020-03-03 05:09:53 +08:00
committed by GitHub
parent 966bcf8010
commit 5ad30e815a
7 changed files with 71 additions and 36 deletions

View File

@@ -5,22 +5,22 @@
<b-form-radio
v-for="block in subscriptionBlocksOrdered"
v-if="block.target !== 'group' && block.canSubscribe === true"
:value="block.key"
:key="block.key"
v-model="subscription.key"
:value="block.key"
class="subscribe-option pt-2 pl-5 pb-3 mb-0"
:class="{selected: subscription.key === block.key}"
@click.native="subscription.key = block.key"
>
<!-- eslint-enable vue/no-use-v-if-with-v-for -->
<!-- eslint-enable vue/no-use-v-if-with-v-for -->
<div
v-html="$t('subscriptionRateText', {price: block.price, months: block.months})"
class="subscription-text ml-2 mb-1"
v-html="$t('subscriptionRateText', {price: block.price, months: block.months})"
>
</div>
<div
v-html="subscriptionBubbles(block.key)"
class="ml-2"
v-html="subscriptionBubbles(block.key)"
>
</div>
</b-form-radio>