Adding sections to login form and allowing schema overriding
This commit is contained in:
1 parent
c89b0d4bef
commit
4fd18c61aa
9 files changed
+26
-15
No files matched your search
@@ -33,7 +33,7 @@ Template.section.onCreated(() => {
|
||||
|
||||
// Define the content
|
||||
currentView._sectionMap.set(sectionName, {
|
||||
data: currentView._templateInstance.data,
|
||||
data: Object.assign({}, currentView._templateInstance.data),
|
||||
renderFunction: templateContentBlock.renderFunction
|
||||
});
|
||||
} else {
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
)
|
||||
options=(clone this.options
|
||||
multiple=(valueIf this.multiple true false)
|
||||
placeholder=this.placeholder
|
||||
minimumResultsForSearch=(valueIf this.hideSearch
|
||||
-1 this.minimumResultsForSearch
|
||||
)
|
||||
|
||||
@@ -11,7 +11,8 @@ const extend = (...argsArray) => {
|
||||
const result = argsArray[0] || {};
|
||||
|
||||
// Extract the Spacebars kw hash
|
||||
const kwHash = _.last(argsArray).hash;
|
||||
const lastArg = _.last(argsArray);
|
||||
const kwHash = lastArg ? lastArg.hash : null;
|
||||
|
||||
// Extract the given objects
|
||||
const objects = _.initial(argsArray);
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { Template } from 'meteor/templating';
|
||||
import { OHIF } from 'meteor/ohif:core';
|
||||
|
||||
OHIF.blaze = {};
|
||||
@@ -47,7 +48,7 @@ OHIF.blaze.getParentTemplateView = view => {
|
||||
while (currentView) {
|
||||
currentView = currentView.originalParentView || currentView.parentView;
|
||||
if (!currentView || !currentView.name) return;
|
||||
if (currentView.name.indexOf('Template.') > -1) {
|
||||
if (currentView.name.indexOf('Template.') > -1 && currentView.name.indexOf('Template.__dynamic') === -1) {
|
||||
return currentView;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user