pitaya-launcher/js/store/reducers/desktop-apps.js

14 lines
250 B
JavaScript
Raw Normal View History

2015-09-11 16:25:45 +02:00
var actions = require('../actions');
2015-09-03 15:50:23 +02:00
module.exports = function(state, action) {
2015-09-11 16:25:45 +02:00
var desktopApps = state || [];
2015-09-03 15:50:23 +02:00
if( action.type === actions.edit.LOAD_DESKTOP_APPS_SUCCESS ) {
desktopApps = action.desktopApps;
}
return desktopApps;
};