feat(fe): hide some elements for non-admin users

This commit is contained in:
Denis Gukov 2022-01-19 04:36:33 +05:00
parent f28364dc35
commit e3834446ef

View File

@ -162,7 +162,7 @@
<v-list-item-content>{{ item.name }}</v-list-item-content> <v-list-item-content>{{ item.name }}</v-list-item-content>
</v-list-item> </v-list-item>
<v-list-item @click="newProjectDialog = true"> <v-list-item @click="newProjectDialog = true" v-if="user.admin">
<v-list-item-icon> <v-list-item-icon>
<v-icon>mdi-plus</v-icon> <v-icon>mdi-plus</v-icon>
</v-list-item-icon> </v-list-item-icon>
@ -279,7 +279,7 @@
</template> </template>
<v-list> <v-list>
<v-list-item key="users" to="/users"> <v-list-item key="users" to="/users" v-if="user.admin">
<v-list-item-icon> <v-list-item-icon>
<v-icon>mdi-account-multiple</v-icon> <v-icon>mdi-account-multiple</v-icon>
</v-list-item-icon> </v-list-item-icon>