Skip to content

Commit 1e0fba7

Browse files
ousmaneogally47
andauthored
do not pass entityId for password (#22567)
Co-authored-by: Mohamed OULD HOCINE <[email protected]>
1 parent 49ca863 commit 1e0fba7

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

graylog2-web-interface/src/views/components/DashboardActionsMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ const DashboardActionsMenu = () => {
202202
<DashboardPropertiesModal
203203
show
204204
view={view.toBuilder().newId().build()}
205-
dashboardId={!isNewView && view.id}
205+
dashboardId={view.id}
206206
title="Save new dashboard"
207207
submitButtonText="Create dashboard"
208208
onClose={() => setSaveNewDashboardOpen(false)}

graylog2-web-interface/src/views/components/dashboard/DashboardPropertiesModal.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,14 @@ const DashboardPropertiesModal = ({
115115
onChange={_onChange}
116116
value={updatedDashboard.description}
117117
/>
118-
<EntityCreateShareFormGroup
119-
description="Search for a User or Team to add as collaborator on this dashboard."
120-
entityType="dashboard"
121-
entityTitle=""
122-
entityId={dashboardId}
123-
onSetEntityShare={(payload) => setSharePayload(payload)}
124-
/>
118+
{dashboardId !== view.id && (
119+
<EntityCreateShareFormGroup
120+
description="Search for a User or Team to add as collaborator on this dashboard."
121+
entityType="dashboard"
122+
entityTitle=""
123+
onSetEntityShare={(payload) => setSharePayload(payload)}
124+
/>
125+
)}
125126
{pluggableFormComponents?.map(({ component: Component, id }) => Component && <Component key={id} />)}
126127
</>
127128
</BootstrapModalForm>

0 commit comments

Comments
 (0)