Skip to content

Commit eec276c

Browse files
authored
change names of components with fragment update (#27)
1 parent 9d8cffa commit eec276c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

pour/vinoweb/src/RobotApp.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
joints: leftJoints,
6464
tableTitle: "Left Arm",
6565
camera: {
66-
name: "cam-left",
66+
name: "left-cam",
6767
partID: "xxx",
6868
label: "Left Camera",
6969
},
@@ -72,7 +72,7 @@
7272
joints: rightJoints,
7373
tableTitle: "Right Arm",
7474
camera: {
75-
name: "cam-right",
75+
name: "right-cam",
7676
partID: "xxx",
7777
label: "Right Camera",
7878
},
@@ -93,8 +93,8 @@
9393
const robotClient = robotClientStore.current;
9494
$inspect(robotClient, "robotClient");
9595
if (robotClient && !pollingHandle) {
96-
if (!leftArm) leftArm = new ArmClient(robotClient, "arm-left");
97-
if (!rightArm) rightArm = new ArmClient(robotClient, "arm-right");
96+
if (!leftArm) leftArm = new ArmClient(robotClient, "left-arm");
97+
if (!rightArm) rightArm = new ArmClient(robotClient, "right-arm");
9898
if (!generic) generic = new GenericServiceClient(robotClient, "cart");
9999
100100
pollingHandle = setInterval(async () => {

pour/vinoweb/src/componentPreview.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
];
2929
3030
const mockCamera = {
31-
name: "cam-left",
31+
name: "left-cam",
3232
partID: "xxx",
3333
label: "Camera 1",
3434
};
@@ -38,7 +38,7 @@
3838
joints: sampleJoints,
3939
tableTitle: "Robot Arm 1",
4040
camera: {
41-
name: "cam-left",
41+
name: "left-cam",
4242
partID: "xxx",
4343
label: "Camera 1",
4444
},
@@ -47,7 +47,7 @@
4747
joints: sampleJoints,
4848
tableTitle: "Robot Arm 2",
4949
camera: {
50-
name: "cam-right",
50+
name: "right-cam",
5151
partID: "xxx",
5252
label: "Camera 2",
5353
},

0 commit comments

Comments
 (0)