+4
-7
lines changedFilter options
+4
-7
lines changed Original file line number Diff line number Diff line change
@@ -26,9 +26,6 @@ export function copyEntity(sourceEntities, destinationEntities, payload) {
26
26
const {itemID, itemType} = payload;
27
27
28
28
const newItemAttributes = readEntityData(sourceEntities, itemType, itemID);
29
-
if(newItemAttributes.name) {
30
-
newItemAttributes.name += " (copied)";
31
-
}
32
29
const creationPayload = {itemType, itemID, newItemAttributes}
33
30
34
31
const updatedEntities = createEntity(destinationEntities, creationPayload);
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ import {
14
14
stopEditingPilot,
15
15
} from "../pilotsActions";
16
16
17
-
import {updateEntity} from "features/entities/entityActions";
17
+
import {editItemAttributes} from "features/editing/editingActions";
18
18
19
19
import {getValueFromEvent} from "common/utils/clientUtils";
20
20
@@ -76,7 +76,7 @@ const mapState = (state) => {
76
76
const actions = {
77
77
startEditingPilot,
78
78
stopEditingPilot,
79
-
updateEntity,
79
+
editItemAttributes,
80
80
}
81
81
82
82
@@ -85,15 +85,15 @@ export class PilotDetails extends Component {
85
85
const newValues = getValueFromEvent(e);
86
86
const {id} = this.props.pilot;
87
87
88
-
this.props.updateEntity("Pilot", id, newValues);
88
+
this.props.editItemAttributes("Pilot", id, newValues);
89
89
}
90
90
91
91
onDropdownChanged = (e, result) => {
92
92
const {name, value} = result;
93
93
const newValues = { [name] : value};
94
94
const {id} = this.props.pilot;
95
95
96
-
this.props.updateEntity("Pilot", id, newValues);
96
+
this.props.editItemAttributes("Pilot", id, newValues);
97
97
}
98
98
99
99
onStartEditingClicked = () => {
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4