File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change 4
4
{{ $t('auth.settings.blacklist') }}
5
5
</h2 >
6
6
<p class =" subtitle is-6" >{{ $t('auth.settings.blacklistSubtitle') }}</p >
7
- <author
8
- v-for =" (user, index) in blacklistedUsers"
9
- :key =" user._id"
10
- :user =" user"
11
- />
7
+ <hc-box :isLoading =" isLoading" >
8
+ <author
9
+ v-for =" (user, index) in blacklistedUsers"
10
+ :key =" user._id"
11
+ :user =" user"
12
+ />
13
+ </hc-box >
12
14
</div >
13
15
</template >
14
16
15
17
<script >
16
18
import Author from ' ~/components/Author/Author.vue'
19
+ import Box from ' ~/components/Global/Layout/Box/Box.vue'
17
20
import { mapGetters } from ' vuex'
18
21
19
22
export default {
20
23
components: {
21
- ' author' : Author
24
+ ' author' : Author,
25
+ ' hc-box' : Box
22
26
},
23
27
data () {
24
28
return {
@@ -28,10 +32,12 @@ import { mapGetters } from 'vuex'
28
32
computed: {
29
33
... mapGetters ({
30
34
loggedInUser: ' auth/user' ,
31
- userSettings: ' feathers-vuex-usersettings/current'
35
+ userSettings: ' feathers-vuex-usersettings/current' ,
36
+ isLoading: ' feathers-vuex-usersettings/isPending'
32
37
})
33
38
},
34
39
async mounted (){
40
+ await this .$store .dispatch (' feathers-vuex-usersettings/loadCurrent' , this .loggedInUser )
35
41
const { blacklist = [] } = this .userSettings || {}
36
42
const res = await this .$store .dispatch (' feathers-vuex-users/find' , {
37
43
query: {
You can’t perform that action at this time.
0 commit comments