handleSubmitSceneAnimationFixtures(e) {
    // Prevent sending data to server
    e.preventDefault()

    // Get data out of the form
    const data = new FormData(e.target)

    const duration = 20
    const name = data.get('name')

    store.dispatch(addScene({
      id: uuidv1(),
      fixtures: this._fixtures,
      animations: this._animations,
      duration,
      name,
      isRunning: false
    }))

    this._fixtures = []
    this._animations = []
  }
/*
   * Add a scene that has already a set of animations and fixtures
   */
Add a scene that has already a set of animations and fixtures
Add a scene that has already a set of animations and fixtures
handleSubmitSceneAnimationFixtures(e) {
    e.preventDefault()
    const data = new FormData(e.target)
    const duration = 20
    const name = data.get('name')
    store.dispatch(addScene({
      id: uuidv1(),
      fixtures: this._fixtures,
      animations: this._animations,
      duration,
      name,
      isRunning: false
    }))
    this._fixtures = []
    this._animations = []
  }
handleSubmitSceneAnimationFixtures ( e ) { e . preventDefault ( ) const data = new FormData ( e . target ) const duration = 20 const name = data . get ( 'name' ) store . dispatch ( addScene ( { id : uuidv1 ( ) , fixtures : this . _fixtures , animations : this . _animations , duration , name , isRunning : false } ) ) this . _fixtures = [ ] this . _animations = [ ] }
Add a scene that has already a set of animations and fixtures
Add a scene that has already a set of animations and fixtures
// Prevent sending data to server // Get data out of the form