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