Skip to content
Snippets Groups Projects
Commit 404b3bb5 authored by Loïc Correnson's avatar Loïc Correnson
Browse files

[ivette/labviews] override item group

parent 896d9f23
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,7 @@ class Library { ...@@ -41,7 +41,7 @@ class Library {
} }
} }
useItem(id,group,path,props) { useItem(id,gcontext,path,props) {
if (!this.modified) { if (!this.modified) {
this.modified = true ; this.modified = true ;
setImmediate(() => this.commit()); setImmediate(() => this.commit());
...@@ -50,6 +50,7 @@ class Library { ...@@ -50,6 +50,7 @@ class Library {
let order = props.rank === undefined let order = props.rank === undefined
? path ? path
: path.slice(0,-1).concat([props.rank]); : path.slice(0,-1).concat([props.rank]);
let group = props.group || gcontext ;
let collection = this.virtual ; let collection = this.virtual ;
collection[id] = Object.assign( { id, order, group }, props ); collection[id] = Object.assign( { id, order, group }, props );
return () => delete collection[id]; return () => delete collection[id];
......
...@@ -53,8 +53,8 @@ export default (function() { ...@@ -53,8 +53,8 @@ export default (function() {
<View id='default' label='Dashboard' defaultView> <View id='default' label='Dashboard' defaultView>
<GridItem id='frama-c.console'/> <GridItem id='frama-c.console'/>
</View> </View>
<Group id='frama-c' label='Frama-C' title='Frama-C Kernel Components'/>
<Component id='frama-c.console' label='Console' > <Component id='frama-c.console' group='frama-c' label='Console' >
<Controller.Console/> <Controller.Console/>
</Component> </Component>
</LabView> </LabView>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment