Moving App; Modal analytics
This commit is contained in:
@ -5,20 +5,20 @@ import { createStore, bindActionCreators } from 'redux'
|
|||||||
import { hashHistory, Link } from 'react-router'
|
import { hashHistory, Link } from 'react-router'
|
||||||
import { connect } from 'react-redux'
|
import { connect } from 'react-redux'
|
||||||
|
|
||||||
import Sidebar from '../components/Sidebar'
|
import Sidebar from './components/Sidebar'
|
||||||
import MiniPlayer from '../components/MiniPlayer'
|
import MiniPlayer from './components/MiniPlayer'
|
||||||
import SidebarToggleButton from '../components/SidebarToggleButton'
|
import SidebarToggleButton from './components/SidebarToggleButton'
|
||||||
import ContextMenu from '../components/ContextMenu'
|
import ContextMenu from './components/ContextMenu'
|
||||||
import Dragger from '../components/Dragger'
|
import Dragger from './components/Dragger'
|
||||||
import Modal from '../components/Modal/Modal'
|
import Modal from './components/Modal/Modal'
|
||||||
import Notifications from '../components/Notifications'
|
import Notifications from './components/Notifications'
|
||||||
import DebugInfo from '../components/DebugInfo'
|
import DebugInfo from './components/DebugInfo'
|
||||||
|
|
||||||
import * as helpers from '../helpers'
|
import * as helpers from './helpers'
|
||||||
import * as uiActions from '../services/ui/actions'
|
import * as uiActions from './services/ui/actions'
|
||||||
import * as pusherActions from '../services/pusher/actions'
|
import * as pusherActions from './services/pusher/actions'
|
||||||
import * as mopidyActions from '../services/mopidy/actions'
|
import * as mopidyActions from './services/mopidy/actions'
|
||||||
import * as spotifyActions from '../services/spotify/actions'
|
import * as spotifyActions from './services/spotify/actions'
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -12,7 +12,7 @@ import ReactGA from 'react-ga'
|
|||||||
import store from './bootstrap.js'
|
import store from './bootstrap.js'
|
||||||
require('../scss/app.scss');
|
require('../scss/app.scss');
|
||||||
|
|
||||||
import App from './views/App'
|
import App from './App'
|
||||||
import Album from './views/Album'
|
import Album from './views/Album'
|
||||||
import Artist from './views/Artist'
|
import Artist from './views/Artist'
|
||||||
import Playlist from './views/Playlist'
|
import Playlist from './views/Playlist'
|
||||||
|
|||||||
@ -244,11 +244,13 @@ const UIMiddleware = (function(){
|
|||||||
break
|
break
|
||||||
|
|
||||||
case 'OPEN_MODAL':
|
case 'OPEN_MODAL':
|
||||||
|
ReactGA.event({ category: 'Modal', action: 'Opened', label: action.modal.name })
|
||||||
$('body').addClass('modal-open')
|
$('body').addClass('modal-open')
|
||||||
next(action)
|
next(action)
|
||||||
break
|
break
|
||||||
|
|
||||||
case 'CLOSE_MODAL':
|
case 'CLOSE_MODAL':
|
||||||
|
ReactGA.event({ category: 'Modal', action: 'Closed', label: action.modal.name })
|
||||||
$('body').removeClass('modal-open')
|
$('body').removeClass('modal-open')
|
||||||
next(action)
|
next(action)
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user