mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(editor): Follow up fixes and improvements to viewer role (#10684)
This commit is contained in:
committed by
GitHub
parent
efa5573278
commit
63548e6ead
@@ -57,6 +57,7 @@ export default defineComponent({
|
||||
scopes: credential.scopes,
|
||||
type: credential.type,
|
||||
sharedWithProjects: credential.sharedWithProjects,
|
||||
readOnly: !getResourcePermissions(credential.scopes).credential.update,
|
||||
}));
|
||||
},
|
||||
allCredentialTypes(): ICredentialType[] {
|
||||
@@ -179,7 +180,12 @@ export default defineComponent({
|
||||
</div>
|
||||
</template>
|
||||
<template #default="{ data }">
|
||||
<CredentialCard data-test-id="resources-list-item" class="mb-2xs" :data="data" />
|
||||
<CredentialCard
|
||||
data-test-id="resources-list-item"
|
||||
class="mb-2xs"
|
||||
:data="data"
|
||||
:read-only="data.readOnly"
|
||||
/>
|
||||
</template>
|
||||
<template #filters="{ setKeyValue }">
|
||||
<div class="mb-s">
|
||||
|
||||
Reference in New Issue
Block a user