[UI] Dont show project view menu when user doesn't have permission (#6081)

* Dont show project menu when user doesnt have permission

* Update ui/src/components/header/ProjectMenu.vue

Co-authored-by: Hoang Nguyen <hoangnm@unitech.vn>

* Removing unnecessary var

Co-authored-by: Hoang Nguyen <hoangnm@unitech.vn>
This commit is contained in:
Bryan Lima 2022-03-12 00:11:03 -03:00 committed by GitHub
parent 4c3dbd541c
commit 603f88a9e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,11 +18,11 @@
<template>
<span class="header-notice-opener">
<a-select
v-if="!isDisabled()"
class="project-select"
:defaultValue="$t('label.default.view')"
:loading="loading"
:value="($store.getters.project && 'id' in $store.getters.project) ? ($store.getters.project.displaytext || $store.getters.project.name) : $t('label.default.view')"
:disabled="isDisabled()"
:filterOption="filterProject"
@change="changeProject"
@focus="fetchData"