From 26af9562cc515627be4be8759b70ebfbab8bb83c Mon Sep 17 00:00:00 2001
From: bob <bcz@cs.brown.edu>
Date: Tue, 5 Feb 2019 17:41:12 -0500
Subject: first changes

---
 src/views/nodes/ImageBox.tsx | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

(limited to 'src/views/nodes/ImageBox.tsx')

diff --git a/src/views/nodes/ImageBox.tsx b/src/views/nodes/ImageBox.tsx
index dd201f20f..65a3b7437 100644
--- a/src/views/nodes/ImageBox.tsx
+++ b/src/views/nodes/ImageBox.tsx
@@ -7,6 +7,7 @@ import React = require("react")
 import { ImageField } from '../../fields/ImageField';
 import { FieldViewProps, FieldView } from './FieldView';
 import { CollectionFreeFormDocumentView } from './CollectionFreeFormDocumentView';
+import { WAITING } from '../../fields/Field';
 
 interface ImageBoxState {
     photoIndex: number,
@@ -62,7 +63,11 @@ export class ImageBox extends React.Component<FieldViewProps, ImageBoxState> {
         let field = this.props.doc.GetFieldT(this.props.fieldKey, ImageField);
         let path = "";
         if (field) {
-            path = field.Data.href;
+            if (field === WAITING) {
+                path = "https://image.flaticon.com/icons/svg/66/66163.svg"
+            } else {
+                path = field.Data.href;
+            }
         }
         const images = [path,];
         var lightbox = () => {
-- 
cgit v1.2.3-70-g09d2

