|
@@ -11,7 +11,6 @@ export default function ActionEditor(props) {
|
|
let RoutingSystem = InjectionSystem.inject('Routing');
|
|
let RoutingSystem = InjectionSystem.inject('Routing');
|
|
let Routes = RoutingSystem.topology.nodes
|
|
let Routes = RoutingSystem.topology.nodes
|
|
if (!action.data || typeof action.data !== "object") action.data = {};
|
|
if (!action.data || typeof action.data !== "object") action.data = {};
|
|
- console.log(ActionSystem)
|
|
|
|
if (!action.type) action.type = ActionSystem.constructor.Actions[0].id
|
|
if (!action.type) action.type = ActionSystem.constructor.Actions[0].id
|
|
return (
|
|
return (
|
|
<View style={styles.container}>
|
|
<View style={styles.container}>
|
|
@@ -21,7 +20,7 @@ export default function ActionEditor(props) {
|
|
<View style={styles.row}>
|
|
<View style={styles.row}>
|
|
<Text>Action</Text>
|
|
<Text>Action</Text>
|
|
<Picker
|
|
<Picker
|
|
- selectedValue={action.name}
|
|
|
|
|
|
+ selectedValue={action.id}
|
|
style={styles.picker}
|
|
style={styles.picker}
|
|
onValueChange={(itemValue, itemIndex) => {
|
|
onValueChange={(itemValue, itemIndex) => {
|
|
action.type = itemValue;
|
|
action.type = itemValue;
|
|
@@ -29,7 +28,7 @@ export default function ActionEditor(props) {
|
|
setAction(action)
|
|
setAction(action)
|
|
}}>
|
|
}}>
|
|
{ActionSystem.constructor.Actions.map((itemAction, index) => {
|
|
{ActionSystem.constructor.Actions.map((itemAction, index) => {
|
|
- return <Picker.Item label={itemAction.name} value={itemAction.id} key={index} />
|
|
|
|
|
|
+ return <Picker.Item label={itemAction.id} value={itemAction.id} key={index} />
|
|
})}
|
|
})}
|
|
</Picker>
|
|
</Picker>
|
|
</View>
|
|
</View>
|