Files
Iris/src/js/services/ui/actions.js

43 lines
813 B
JavaScript
Raw Normal View History

2016-10-27 10:02:12 +13:00
export function showContextMenu( e, context = false, data ){
return {
type: 'UI_SHOW_CONTEXT_MENU',
position_x: e.clientX,
position_y: e.clientY,
context: context,
data: data
}
}
export function hideContextMenu(){
2016-11-09 15:49:25 +13:00
return {
type: 'UI_HIDE_CONTEXT_MENU'
}
}
export function searchStarted(){
2016-10-27 10:02:12 +13:00
return {
2016-11-09 15:49:25 +13:00
type: 'SEARCH_STARTED',
data: {
artists: [],
albums: [],
playlists: [],
tracks: [],
artists_more: false,
albums_more: false,
playlists_more: false,
tracks_more: false
}
2016-10-27 10:02:12 +13:00
}
}
2016-11-01 08:57:28 +13:00
export function lazyLoading( start ){
return {
type: 'UI_LAZY_LOADING',
start: start
}
}
2016-10-27 10:02:12 +13:00