Fixing select2 placeholders and reactivity issues
This commit is contained in:
parent
2e5f6299cc
commit
98c052c4b7
@ -98,7 +98,7 @@ OHIF.mixins.select2 = new OHIF.Mixin({
|
||||
const currentValue = component.value();
|
||||
Tracker.afterFlush(() => {
|
||||
rebuildSelect2();
|
||||
component.value(currentValue);
|
||||
component.$element.val(currentValue);
|
||||
});
|
||||
} else {
|
||||
rebuildSelect2();
|
||||
|
||||
@ -7,11 +7,9 @@
|
||||
this.wrappers
|
||||
)
|
||||
options=(clone this.options
|
||||
multiple=(valueIf this.multiple true false)
|
||||
placeholder=this.placeholder
|
||||
minimumResultsForSearch=(valueIf this.hideSearch
|
||||
-1 this.minimumResultsForSearch
|
||||
)
|
||||
multiple=(choose this.options.multiple this.multiple false)
|
||||
placeholder=(choose this.options.placeholder this.placeholder)
|
||||
minimumResultsForSearch=(valueIf this.hideSearch -1 this.options.minimumResultsForSearch)
|
||||
)
|
||||
)}}
|
||||
{{>UI.contentBlock}}
|
||||
|
||||
@ -55,8 +55,8 @@ export const DICOMWebServer = new SimpleSchema({
|
||||
imageRendering: {
|
||||
type: String,
|
||||
label: 'Image rendering',
|
||||
allowedValues: ['', 'wadouri', 'orthanc'],
|
||||
valuesLabels: ['', 'WADO URI', 'ORTHANC']
|
||||
allowedValues: ['wadouri', 'orthanc'],
|
||||
valuesLabels: ['WADO URI', 'ORTHANC']
|
||||
},
|
||||
qidoRoot: {
|
||||
type: String,
|
||||
@ -163,7 +163,7 @@ export const UISettings = new SimpleSchema({
|
||||
type: Number,
|
||||
label: 'Number of days to be used on Study List date filter',
|
||||
min: 1
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
export const PrefetchSchema = new SimpleSchema({
|
||||
|
||||
Loading…
Reference in New Issue
Block a user