Skip to content

Commit 38835fd

Browse files
committed
fixing schema builder problem where schema is not in edit mode when error occurs
1 parent 715beed commit 38835fd

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

packages/tdb-dashboard/src/App.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,3 +1193,4 @@ pre.CodeMirror-line > span > span.cm-string {
11931193
width: 100px;
11941194
height: 100px;
11951195
}
1196+

packages/tdb-dashboard/src/components/JSONModelBuilder.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,27 +109,27 @@ export const JSONModelBuilder = ({tab,saveGraph,accessControlEditMode, setReport
109109
<div className="col-md-10 pr-0 pl-0">
110110
<input id="schema_save_description" placeholder={"Enter a description to tag update"} type="text" className="form-control" onBlur={handleCommitMessage}/>
111111
</div>
112-
<button type="button" id="schema_save_button" className="btn btn-md bg-light text-dark" onClick={saveChange}>
112+
<button type="button" id="schema_save_button" className="btn btn-sm bg-light text-dark" onClick={saveChange}>
113113
<BsSave className="small"/> {"Save"}
114114
</button>
115115
<button type="button"
116116
title="Undo changes"
117-
className="btn btn-md bg-danger text-white mr-2" onClick={()=>{ handleUndo() }}>
117+
className="btn btn-sm bg-danger text-white mr-2" onClick={()=>{ handleUndo() }}>
118118
<BiUndo className="h5"/> {"Undo"}
119119
</button>
120120
</div>
121121
</div>
122122
}
123123
{accessControlEditMode && !editMode &&
124-
<button type="button" className="btn-edit-json-model btn btn-md btn-light text-dark float-right mr-2 col-md-1"
124+
<button type="button" className="btn-edit-json-model btn btn-md btn-light text-dark float-right mr-2"
125125
onClick={()=>{setEditMode(true)}}>
126-
<FaRegEdit/> Edit Schema
126+
<FaRegEdit className="mb-1"/> Edit Schema
127127
</button>
128128
}
129129
<CopyButton text={jsonSchema}
130-
label={"Copy schema"}
130+
label={""}
131131
title={`Copy JSON schema`}
132-
css={"btn btn-md bg-light text-dark float-right col-md-1"}/>
132+
css={"btn btn-md bg-light text-dark float-right"}/>
133133
</Stack>
134134
</Card.Header>
135135
<div className="h-100">

0 commit comments

Comments
 (0)