mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
[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:
parent
4c3dbd541c
commit
603f88a9e5
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user