LT-413: Enable analytics on Lesion Tracker
This commit is contained in:
1 parent
33f9b8672b
commit
b99b986630
11 files changed
+45
-7
No files matched your search
@@ -5,6 +5,10 @@ import { ActiveEntry } from 'meteor/clinical:active-entry';
|
||||
Template.entrySignIn.hooks({
|
||||
|
||||
rendered: function () {
|
||||
if (!Meteor.settings.public.demoUserEnabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Create Test Drive button dynamically
|
||||
let btnTestDrive = $('<button/>', {
|
||||
id: 'btnTestDrive',
|
||||
|
||||
@@ -11,6 +11,10 @@ Meteor.startup(function() {
|
||||
};
|
||||
|
||||
createDemoUser = function() {
|
||||
if (!Meteor.settings.public.demoUserEnabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
const user = Meteor.users.findOne({
|
||||
emails: {
|
||||
$elemMatch: {
|
||||
@@ -21,7 +25,8 @@ Meteor.startup(function() {
|
||||
if (user) {
|
||||
return;
|
||||
}
|
||||
console.log('create user!');
|
||||
|
||||
console.log('Creating demo user');
|
||||
|
||||
// Create user
|
||||
const userId = Accounts.createUser(options);
|
||||
|
||||
Reference in new issue
Block a user