diff --git a/client/src/app/core/sync-records/_services/syncing.service.ts b/client/src/app/core/sync-records/_services/syncing.service.ts
index f1b87f51a1..aba43b5385 100755
--- a/client/src/app/core/sync-records/_services/syncing.service.ts
+++ b/client/src/app/core/sync-records/_services/syncing.service.ts
@@ -61,7 +61,7 @@ export class SyncingService {
doc['items'][0]['inputs'].push({ name: 'tabletUserName', value: username });
// Redact any fields marked as private.
doc['items'].forEach(item => {
- item['inputs'].forEach(input => {
+ item['inputs'].forEach(input => {
if (input.private) {
input.value = '';
}
diff --git a/develop.sh b/develop.sh
index a7af59e3cb..636a36b88b 100755
--- a/develop.sh
+++ b/develop.sh
@@ -75,13 +75,13 @@ fi
if echo "$T_MODULES" | grep mysql; then
./mysql-create-dirs.sh
-fi
-if echo "$T_USE_MYSQL_CONTAINER" | grep "true"; then
+ if echo "$T_USE_MYSQL_CONTAINER" | grep "true"; then
./mysql-start-container.sh
echo "Waiting 60 seconds for mysql container to start..."
- sleep 60
- ./mysql-setup.sh
+ sleep 60
+ ./mysql-setup.sh
+ fi
fi
if echo "$T_MYSQL_PHPMYADMIN" | grep "TRUE"; then
@@ -230,6 +230,7 @@ OPTIONS="--link $T_COUCHDB_CONTAINER_NAME:couchdb \
--volume $(pwd)/editor/src:/tangerine/editor/src:delegated \
--volume $(pwd)/translations:/tangerine/translations:delegated \
--volume $(pwd)/online-survey-app/src:/tangerine/online-survey-app/src:delegated \
+ --volume $(pwd)/online-survey-app/dist:/tangerine/online-survey-app/dist:delegated \
--volume $(pwd)/tangy-form-editor:/tangerine/tangy-form-editor:delegated \
--volume $(pwd)/tangy-form:/tangerine/tangy-form:delegated \
tangerine/tangerine:local
diff --git a/docs/editor/content-sets.md b/docs/editor/content-sets.md
index 1acbe44eb1..7ebf536c02 100644
--- a/docs/editor/content-sets.md
+++ b/docs/editor/content-sets.md
@@ -28,7 +28,7 @@ Be sure to update any cron jobs to include the new build commands if they are us
``
git pull
-npm rn install-server
+npm run install-server
npm build
``
diff --git a/editor/src/app/app.component.ts b/editor/src/app/app.component.ts
index 50abcaa846..7f72119b10 100644
--- a/editor/src/app/app.component.ts
+++ b/editor/src/app/app.component.ts
@@ -171,7 +171,10 @@ export class AppComponent implements OnInit, OnDestroy {
this.isConfirmDialogActive = false;
} else {
await this.logout();
- }
+ }
+ } else if (Date.now() > expiryTimeInMs && this.isConfirmDialogActive) {
+ // the token expired, and we warned them. Time to log out.
+ await this.logout();
}
}
diff --git a/editor/src/app/case/classes/event-form-definition.class.ts b/editor/src/app/case/classes/event-form-definition.class.ts
index 1b0782fddd..31904304bf 100644
--- a/editor/src/app/case/classes/event-form-definition.class.ts
+++ b/editor/src/app/case/classes/event-form-definition.class.ts
@@ -15,6 +15,7 @@ export class EventFormDefinition {
allowDeleteIfFormNotStarted:string
onEventFormOpen?:string
onEventFormClose?:string
+ allowOnline?:boolean
constructor() {
}
diff --git a/editor/src/app/case/components/event-form-list-item/event-form-list-item.component.html b/editor/src/app/case/components/event-form-list-item/event-form-list-item.component.html
index 60a43e393d..505ebb27f5 100644
--- a/editor/src/app/case/components/event-form-list-item/event-form-list-item.component.html
+++ b/editor/src/app/case/components/event-form-list-item/event-form-list-item.component.html
@@ -5,6 +5,22 @@
+
+
+
+
+
+
+
+