mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 18:41:14 +00:00
fix(editor): Add disabled state with tooltip on project creation buttons if user lacks permission (#13867)
This commit is contained in:
committed by
GitHub
parent
c7bcdc544d
commit
e33d0d7466
@@ -294,6 +294,7 @@ const {
|
||||
createCredentialsAppendSlotName,
|
||||
projectsLimitReachedMessage,
|
||||
upgradeLabel,
|
||||
hasPermissionToCreateProjects,
|
||||
} = useGlobalEntityCreation();
|
||||
onClickOutside(createBtn as Ref<VueInstance>, () => {
|
||||
createBtn.value?.close();
|
||||
@@ -385,7 +386,14 @@ onClickOutside(createBtn as Ref<VueInstance>, () => {
|
||||
placement="right"
|
||||
:content="projectsLimitReachedMessage"
|
||||
>
|
||||
<N8nIcon
|
||||
v-if="!hasPermissionToCreateProjects"
|
||||
style="margin-left: auto; margin-right: 5px"
|
||||
icon="lock"
|
||||
size="xsmall"
|
||||
/>
|
||||
<N8nButton
|
||||
v-else
|
||||
:size="'mini'"
|
||||
style="margin-left: auto"
|
||||
type="tertiary"
|
||||
|
||||
Reference in New Issue
Block a user