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
|
<simple-flowchart
|
||||||
:scene.sync="model"
|
:scene.sync="model"
|
||||||
@nodeDelete="enqueuePendingNodeDeletion"
|
@nodeDelete="enqueuePendingNodeDeletion"
|
||||||
@nodeDataEdited="enqueuePendingNodeUpdate"
|
@nodeDataEdited="handleNodeDataEdit"
|
||||||
@linkBreak="handleLinkBreak"
|
@linkBreak="handleLinkBreak"
|
||||||
@linkAdded="handleLinkAdd"
|
@linkAdded="handleLinkAdd"
|
||||||
@nodeMoved="handleNodeMove"
|
@nodeMoved="handleNodeMove"
|
||||||
@ -138,6 +138,11 @@ export default {
|
|||||||
this.pendingChanges.created = Array.from(pending_creations);
|
this.pendingChanges.created = Array.from(pending_creations);
|
||||||
},
|
},
|
||||||
// --- end of magic hack
|
// --- end of magic hack
|
||||||
|
handleNodeDataEdit(id) {
|
||||||
|
if (!this.pendingChanges.created.includes(id)) {
|
||||||
|
this.enqueuePendingNodeUpdate(id);
|
||||||
|
}
|
||||||
|
},
|
||||||
handleNodeMove(id) {
|
handleNodeMove(id) {
|
||||||
const moved_node = this.model.nodes.find((node) => node.id === id);
|
const moved_node = this.model.nodes.find((node) => node.id === id);
|
||||||
|
|
||||||
@ -196,15 +201,15 @@ export default {
|
|||||||
break;
|
break;
|
||||||
case "restreamer":
|
case "restreamer":
|
||||||
data["inputNeighbour"] = null;
|
data["inputNeighbour"] = null;
|
||||||
data["outputURLs"] = [];
|
data["outputURLs"] = new_node.data.url ? [new_node.data.url] : [];
|
||||||
translated_type = "restream";
|
translated_type = "restream";
|
||||||
break;
|
break;
|
||||||
case "encoder":
|
case "encoder":
|
||||||
data["inputNeighbour"] = null;
|
data["inputNeighbour"] = null;
|
||||||
data["outputNeighbours"] = []
|
data["outputNeighbours"] = []
|
||||||
data["bitrate"] = 0;
|
data["bitrate"] = new_node.data.bitrate;
|
||||||
data["width"] = 0;
|
data["width"] = new_node.data.width;
|
||||||
data["height"] = 0;
|
data["height"] = new_node.data.height;
|
||||||
translated_type = "encode";
|
translated_type = "encode";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -276,7 +281,7 @@ export default {
|
|||||||
break;
|
break;
|
||||||
case "restreamer":
|
case "restreamer":
|
||||||
data["inputNeighbour"] = input_neighbor ? input_neighbor.apiId : null;
|
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";
|
translated_type = "restream";
|
||||||
break;
|
break;
|
||||||
case "encoder":
|
case "encoder":
|
||||||
|
Loading…
Reference in New Issue
Block a user