Edition de l'arbre profile basique

This commit is contained in:
2015-09-17 12:04:33 +02:00
parent a2f0a03671
commit 6a790cc5bd
3 changed files with 79 additions and 50 deletions

View File

@ -4,6 +4,7 @@ var ProfileTree = require('./profile-tree.jsx');
var DesktopAppList = require('./desktop-app-list.jsx');
var ItemForm = require('./item-form.jsx');
var IconThemeSelector = require('./icon-theme-selector.jsx');
var tree = require('../../util/tree');
var actions = require('../../store/actions');
var DragDropContext = require('react-dnd').DragDropContext;
@ -65,7 +66,7 @@ function select(state) {
desktopApps: state.desktopApps,
profile: state.profile,
theme: state.theme,
selectedItem: state.selectedItem
selectedItem: tree.matches(state.profile, {selected: true})[0]
};
}