File tree Expand file tree Collapse file tree
extensions/ql-vscode/src/view/data-extensions-editor Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ const TitleContainer = styled.button`
2626 cursor: pointer;
2727` ;
2828
29- const TitleDivider = styled ( VSCodeDivider ) `
29+ const SectionDivider = styled ( VSCodeDivider ) `
3030 padding-top: 0.3rem;
3131 padding-bottom: 0.3rem;
3232` ;
@@ -64,6 +64,13 @@ const TitleButton = styled(VSCodeButton)`
6464 }
6565` ;
6666
67+ const ButtonsContainer = styled . div `
68+ display: flex;
69+ gap: 0.4em;
70+ justify-content: right;
71+ margin-bottom: 1rem;
72+ ` ;
73+
6774type Props = {
6875 title : string ;
6976 externalApiUsages : ExternalApiUsage [ ] ;
@@ -104,6 +111,11 @@ export const LibraryRow = ({
104111 e . preventDefault ( ) ;
105112 } , [ ] ) ;
106113
114+ const handleSave = useCallback ( async ( e : React . MouseEvent ) => {
115+ e . stopPropagation ( ) ;
116+ e . preventDefault ( ) ;
117+ } , [ ] ) ;
118+
107119 return (
108120 < LibraryContainer >
109121 < TitleContainer onClick = { toggleExpanded } aria-expanded = { isExpanded } >
@@ -130,13 +142,17 @@ export const LibraryRow = ({
130142 </ TitleContainer >
131143 { isExpanded && (
132144 < >
133- < TitleDivider />
145+ < SectionDivider />
134146 < ModeledMethodDataGrid
135147 externalApiUsages = { externalApiUsages }
136148 modeledMethods = { modeledMethods }
137149 mode = { mode }
138150 onChange = { onChange }
139151 />
152+ < SectionDivider />
153+ < ButtonsContainer >
154+ < VSCodeButton onClick = { handleSave } > Save</ VSCodeButton >
155+ </ ButtonsContainer >
140156 </ >
141157 ) }
142158 </ LibraryContainer >
You can’t perform that action at this time.
0 commit comments