Asset creator patch

This commit is contained in:
Troplo 2021-04-09 23:22:26 +10:00
parent e22a63834b
commit 5ded3b16f0
4 changed files with 23 additions and 6 deletions

View file

@ -24,6 +24,7 @@ main {
-ms-transform: translate(-50%, -50%); -ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
} }
.navbar { .navbar {
border-bottom: 2px solid #e5e5e5; border-bottom: 2px solid #e5e5e5;
} }

View file

@ -346,6 +346,12 @@
v-if="$store.state.user.admin" v-if="$store.state.user.admin"
>{{ $t("navbar.user.admin") }}</b-navbar-item >{{ $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" <b-navbar-item tag="router-link" to="/friends"
><p>{{ $t("navbar.user.friends") }}&nbsp;</p> ><p>{{ $t("navbar.user.friends") }}&nbsp;</p>
<p v-if="friendCount > 0"> <p v-if="friendCount > 0">
@ -635,11 +641,6 @@ export default {
.then((res) => { .then((res) => {
this.$store.commit("setKoins", res.data.koins); this.$store.commit("setKoins", res.data.koins);
}) })
.catch((e) => {
if (notify) {
AjaxErrorHandler(this.$store)(e);
}
});
}, },
getInfo() { getInfo() {
Object.assign(axios.defaults, { Object.assign(axios.defaults, {

View file

@ -126,6 +126,7 @@
"settings": "Settings", "settings": "Settings",
"logout": "Logout", "logout": "Logout",
"admin": "Admin", "admin": "Admin",
"asset": "Item Upload",
"friends": "Friends" "friends": "Friends"
}, },
"more": { "more": {

View file

@ -18,7 +18,21 @@
</div> </div>
</div> </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="box">
<div class="is-vcentered has-text-centered columns"> <div class="is-vcentered has-text-centered columns">
<div class="column is-vcentered"> <div class="column is-vcentered">