@@ -60,7 +60,7 @@ const filterNestedDict = (value: any, removedKeys: any[]) => {
6060
6161
6262
63- export const NeoSaveModal = ( { dashboard, connection, saveDashboardToNeo4j} ) => {
63+ export const NeoSaveModal = ( { dashboard, connection, saveDashboardToNeo4j } ) => {
6464 const [ saveModalOpen , setSaveModalOpen ] = React . useState ( false ) ;
6565 const [ saveToNeo4jModalOpen , setSaveToNeo4jModalOpen ] = React . useState ( false ) ;
6666 const { driver } = useContext < Neo4jContextState > ( Neo4jContext ) ;
@@ -115,23 +115,23 @@ export const NeoSaveModal = ({ dashboard, connection, saveDashboardToNeo4j}) =>
115115 < DialogContent style = { { width : "1000px" } } >
116116 < Button
117117 component = "label"
118- onClick = { downloadDashboard }
118+ onClick = { ( e ) => { setSaveToNeo4jModalOpen ( true ) } }
119119 style = { { backgroundColor : "white" } }
120120 color = "default"
121121 variant = "contained"
122122 size = "medium"
123- endIcon = { < GetAppIcon /> } >
124- Save to File
123+ endIcon = { < StorageIcon /> } >
124+ Save to Neo4j
125125 </ Button >
126126 < Button
127127 component = "label"
128- onClick = { ( e ) => { setSaveToNeo4jModalOpen ( true ) } }
128+ onClick = { downloadDashboard }
129129 style = { { backgroundColor : "white" , marginLeft : "10px" } }
130130 color = "default"
131131 variant = "contained"
132132 size = "medium"
133- endIcon = { < StorageIcon /> } >
134- Save to Neo4j
133+ endIcon = { < GetAppIcon /> } >
134+ Save to File
135135 </ Button >
136136 < br /> < br />
137137 < TextareaAutosize
@@ -148,7 +148,7 @@ export const NeoSaveModal = ({ dashboard, connection, saveDashboardToNeo4j}) =>
148148
149149 < Dialog maxWidth = { "lg" } open = { saveToNeo4jModalOpen } onClose = { ( e ) => { setSaveToNeo4jModalOpen ( false ) } } aria-labelledby = "form-dialog-title" >
150150 < DialogTitle id = "form-dialog-title" >
151-
151+
152152 Save to Neo4j
153153
154154 < IconButton onClick = { ( e ) => { setSaveToNeo4jModalOpen ( false ) } } style = { { padding : "3px" , float : "right" } } >
@@ -161,14 +161,14 @@ export const NeoSaveModal = ({ dashboard, connection, saveDashboardToNeo4j}) =>
161161 < DialogContentText > This will save your current dashboard as a node to your active Neo4j database.
162162 < br /> Ensure you have write permissions to the database to use this feature.
163163 </ DialogContentText >
164-
164+
165165 < TextareaAutosize
166166 style = { { width : "100%" , border : "1px solid lightgray" } }
167167 className = { "textinput-linenumbers" }
168168 value = { "{\n title: '" + dashboard . title + "',\n" +
169169 " date: '" + new Date ( ) . toISOString ( ) + "',\n" +
170170 " user: '" + connection . username + "',\n" +
171- " content: " + "{...}" + "\n}" }
171+ " content: " + "{...}" + "\n}" }
172172 aria-label = ""
173173 placeholder = "" />
174174 < Button
@@ -178,7 +178,7 @@ export const NeoSaveModal = ({ dashboard, connection, saveDashboardToNeo4j}) =>
178178 setSaveToNeo4jModalOpen ( false ) ;
179179 setSaveModalOpen ( false ) ;
180180 } }
181- style = { { backgroundColor : "white" , marginTop : "20px" , float : "right" } }
181+ style = { { backgroundColor : "white" , marginTop : "20px" , float : "right" } }
182182 color = "default"
183183 variant = "contained"
184184 endIcon = { < SaveIcon /> }
@@ -211,7 +211,7 @@ const mapStateToProps = state => ({
211211const mapDispatchToProps = dispatch => ( {
212212 saveDashboardToNeo4j : ( driver : any , dashboard : any , date : any , user : any ) => {
213213 dispatch ( saveDashboardToNeo4jThunk ( driver , dashboard , date , user ) )
214- } ,
214+ } ,
215215} ) ;
216216
217217//
0 commit comments