Skip to content

Commit 5db51aa

Browse files
Merge pull request #112 from terminusdb/mediaType
Media type
2 parents a685fb0 + aef913d commit 5db51aa

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

packages/tdb-documents-ui/src/css/terminusdb__styles.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,13 @@ form.rjsf label.control-label:after { content: ""; }
745745
/* hide anyof select from document links in edit and view mode */
746746
.tdb__edit__document__link .panel .form-group select.form-control,
747747
.tdb__view__document__link .panel .form-group select.form-control{
748-
display: none !important;
748+
display: none !important;
749+
}
750+
751+
/* display enum selects under document links */
752+
.tdb__edit__document__link .panel .enum__select select.form-control,
753+
.tdb__view__document__link .panel .enum__select select.form-control{
754+
display: block !important;
749755
}
750756

751757
/** display set/ list document link internal control-labels */

packages/tdb-documents-ui/src/enumTypeFrames/enumTypeFrames.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import React from "react"
66
import {DisplayPropertyNameAndComment} from "../documentationTemplates"
77

88
export function makeEnumTypeFrames (fullFrame, frame, item, uiFrame, mode, formData, documentation) {
9-
let enumClassName=frame[item]["@id"]
9+
let enumClassName=frame[item]["@id"]
1010
if(!enumClassName) {
1111
throw new Error (`Expected to get enum class name from frames, but instead received ${enumClassName}`)
1212
}
@@ -19,15 +19,15 @@ export function makeEnumTypeFrames (fullFrame, frame, item, uiFrame, mode, formD
1919

2020

2121
export function getUILayout (fullFrame, frame, item, uiFrame, mode, formData, documentation) {
22-
22+
2323
let label=item
2424
//let enumDocumentation=getLabelFromEnumDocumentation(item, documentation, frame[item]["@values"])
2525
//if(enumDocumentation.hasOwnProperty("@label")) label=enumDocumentation["@label"]
2626

2727
let uiLayout = {
2828
"ui:placeholder": `Select ${label} ...`,
2929
//"ui:description": getDescription(documentation),
30-
classNames: "tdb__input mb-3 mt-3"
30+
classNames: "tdb__input mb-3 mt-3 enum__select"
3131
}
3232

3333
// if property is lexical key then make read only

0 commit comments

Comments
 (0)