Properties pushed upon creation
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
1d5d3df570
commit
5757713f7e
14753
package-lock.json
generated
14753
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -18,7 +18,7 @@
|
||||
<simple-flowchart
|
||||
:scene.sync="model"
|
||||
@nodeDelete="enqueuePendingNodeDeletion"
|
||||
@nodeDataEdited="enqueuePendingNodeUpdate"
|
||||
@nodeDataEdited="handleNodeDataEdit"
|
||||
@linkBreak="handleLinkBreak"
|
||||
@linkAdded="handleLinkAdd"
|
||||
@nodeMoved="handleNodeMove"
|
||||
@ -138,6 +138,11 @@ export default {
|
||||
this.pendingChanges.created = Array.from(pending_creations);
|
||||
},
|
||||
// --- end of magic hack
|
||||
handleNodeDataEdit(id) {
|
||||
if (!this.pendingChanges.created.includes(id)) {
|
||||
this.enqueuePendingNodeUpdate(id);
|
||||
}
|
||||
},
|
||||
handleNodeMove(id) {
|
||||
const moved_node = this.model.nodes.find((node) => node.id === id);
|
||||
|
||||
@ -196,15 +201,15 @@ export default {
|
||||
break;
|
||||
case "restreamer":
|
||||
data["inputNeighbour"] = null;
|
||||
data["outputURLs"] = [];
|
||||
data["outputURLs"] = new_node.data.url ? [new_node.data.url] : [];
|
||||
translated_type = "restream";
|
||||
break;
|
||||
case "encoder":
|
||||
data["inputNeighbour"] = null;
|
||||
data["outputNeighbours"] = []
|
||||
data["bitrate"] = 0;
|
||||
data["width"] = 0;
|
||||
data["height"] = 0;
|
||||
data["bitrate"] = new_node.data.bitrate;
|
||||
data["width"] = new_node.data.width;
|
||||
data["height"] = new_node.data.height;
|
||||
translated_type = "encode";
|
||||
break;
|
||||
}
|
||||
@ -276,7 +281,7 @@ export default {
|
||||
break;
|
||||
case "restreamer":
|
||||
data["inputNeighbour"] = input_neighbor ? input_neighbor.apiId : null;
|
||||
data["outputURLs"] = [changed_node.data.url];
|
||||
data["outputURLs"] = changed_node.data.url ? [changed_node.data.url] : [];
|
||||
translated_type = "restream";
|
||||
break;
|
||||
case "encoder":
|
||||
|
Loading…
Reference in New Issue
Block a user