File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
graylog2-web-interface/src/views/components Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff 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 ) }
Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments