Asset creator patch
This commit is contained in:
parent
e22a63834b
commit
5ded3b16f0
4 changed files with 23 additions and 6 deletions
|
@ -24,6 +24,7 @@ main {
|
|||
-ms-transform: translate(-50%, -50%);
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
|
||||
.navbar {
|
||||
border-bottom: 2px solid #e5e5e5;
|
||||
}
|
|
@ -346,6 +346,12 @@
|
|||
v-if="$store.state.user.admin"
|
||||
>{{ $t("navbar.user.admin") }}</b-navbar-item
|
||||
>
|
||||
<b-navbar-item
|
||||
tag="router-link"
|
||||
to="/admin/item"
|
||||
v-if="$store.state.user.modeler"
|
||||
>{{ $t("navbar.user.asset") }}</b-navbar-item
|
||||
>
|
||||
<b-navbar-item tag="router-link" to="/friends"
|
||||
><p>{{ $t("navbar.user.friends") }} </p>
|
||||
<p v-if="friendCount > 0">
|
||||
|
@ -635,11 +641,6 @@ export default {
|
|||
.then((res) => {
|
||||
this.$store.commit("setKoins", res.data.koins);
|
||||
})
|
||||
.catch((e) => {
|
||||
if (notify) {
|
||||
AjaxErrorHandler(this.$store)(e);
|
||||
}
|
||||
});
|
||||
},
|
||||
getInfo() {
|
||||
Object.assign(axios.defaults, {
|
||||
|
|
|
@ -126,6 +126,7 @@
|
|||
"settings": "Settings",
|
||||
"logout": "Logout",
|
||||
"admin": "Admin",
|
||||
"asset": "Item Upload",
|
||||
"friends": "Friends"
|
||||
},
|
||||
"more": {
|
||||
|
|
|
@ -18,7 +18,21 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column" v-if="!$store.state.user.admin">
|
||||
<div class="columns is-centered" v-if="$store.state.user.modeler && !$store.state.user.admin">
|
||||
<div class="column is-2">
|
||||
<b-menu class="box">
|
||||
<b-menu-list :label="$t('admin.title')">
|
||||
<b-menu-item @click="$router.push('/admin/item')" :label="$t('admin.uploadItem')"></b-menu-item>
|
||||
</b-menu-list>
|
||||
</b-menu>
|
||||
</div>
|
||||
<div class="column is-9">
|
||||
<div class="box">
|
||||
<router-view></router-view>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column" v-if="!$store.state.user.admin && !$store.state.user.modeler">
|
||||
<div class="box">
|
||||
<div class="is-vcentered has-text-centered columns">
|
||||
<div class="column is-vcentered">
|
||||
|
|
Loading…
Reference in a new issue