     frame: @props.frame ? 0
     playbackRate: 1
     frameDimensions: {}
-    inFlipbookMode: workflowAllowsFlipbook @props.workflow
+    inFlipbookMode: @props.allowFlipbook
+
+  willReceiveProps: (nextProps) ->
+    # The default state for subjects is flipbook if allowed
+    if typeof nextProps.allowFlipbook is 'boolean'
+      this.setState
+        inFlipbookMode: allowFlipbook
 
   componentDidMount: ->
     @refs.videoScrubber?.value = 0


  render: ->
    rootClass = 'subject-viewer'
    if @props.workflow.configuration?.multi_image_layout then rootClass += ' subject-viewer--layout-' + @props.workflow.configuration?.multi_image_layout
    if @state.inFlipbookMode then rootClass += ' subject-viewer--flipbook'
    mainDisplay = ''
    if @state.inFlipbookMode

    project: null
    linkToFullImage: false
    frameWrapper: null
    allowFlipbook: true
    allowSeparateFrames: true

  getInitialState: ->
    loading: true
