Avatar stuff
This commit is contained in:
parent
1cae37bade
commit
a254cbe426
2 changed files with 12 additions and 3 deletions
|
@ -336,6 +336,15 @@
|
||||||
"tCreate": {
|
"tCreate": {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"avatar": {
|
||||||
|
"reRender": "Re-render avatar",
|
||||||
|
"hats": "Hats",
|
||||||
|
"faces": "Faces",
|
||||||
|
"shirts": "Shirts",
|
||||||
|
"pants": "Pants",
|
||||||
|
"collections": "Collections",
|
||||||
|
"debug": "Debug"
|
||||||
|
},
|
||||||
"currency": "Koins",
|
"currency": "Koins",
|
||||||
"close": "Cancel",
|
"close": "Cancel",
|
||||||
"tos": "Terms of Service",
|
"tos": "Terms of Service",
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
<div class="column is-3 has-text-centered">
|
<div class="column is-3 has-text-centered">
|
||||||
<h1 class="title">{{$store.state.user.username}}</h1>
|
<h1 class="title">{{$store.state.user.username}}</h1>
|
||||||
<div class="box has-text-centered">
|
<div class="box has-text-centered">
|
||||||
<img :src="'https://cdn.kaverti.com/user/avatars/full/' + $store.state.user.avatar + '.png'">
|
<img :src="'https://cdn.kaverti.com/user/avatars/full/' + $store.state.user.avatar + '.png'"><br>
|
||||||
<b-button :loading="refreshAvatarLoading" class="is-info" @click="refresh()">Re-render</b-button>
|
<b-button :loading="refreshAvatarLoading" class="is-info" @click="refresh()">{{$t('avatar.reRender')}}</b-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="column">
|
<div class="column">
|
||||||
|
@ -76,7 +76,7 @@ export default {
|
||||||
getItems() {
|
getItems() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.axios
|
this.axios
|
||||||
.get(process.env.VUE_APP_APIENDPOINT + process.env.VUE_APP_APIVERSION + '/' + 'inventory/' + this.coreCategory)
|
.get(process.env.VUE_APP_APIENDPOINT + process.env.VUE_APP_APIVERSION + '/' + 'inventory/' + this.category)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
this.items = res.data.rows;
|
this.items = res.data.rows;
|
||||||
this.count = res.data.count
|
this.count = res.data.count
|
||||||
|
|
Loading…
Reference in a new issue