|
|
@ -186,7 +186,7 @@ |
|
|
$goto("./navigation") |
|
|
$goto("./navigation") |
|
|
} |
|
|
} |
|
|
} else if (type === "request-add-component") { |
|
|
} else if (type === "request-add-component") { |
|
|
$goto(`./components/${$selectedComponent?._id}/new`) |
|
|
toggleAddComponent() |
|
|
} else if (type === "highlight-setting") { |
|
|
} else if (type === "highlight-setting") { |
|
|
store.actions.settings.highlight(data.setting) |
|
|
store.actions.settings.highlight(data.setting) |
|
|
|
|
|
|
|
|
@ -230,9 +230,8 @@ |
|
|
if (isAddingComponent) { |
|
|
if (isAddingComponent) { |
|
|
$goto(`../${$selectedScreen._id}/components/${$selectedComponent?._id}`) |
|
|
$goto(`../${$selectedScreen._id}/components/${$selectedComponent?._id}`) |
|
|
} else { |
|
|
} else { |
|
|
$goto( |
|
|
const id = $selectedComponent?._id || $selectedScreen?.props?._id |
|
|
`../${$selectedScreen._id}/components/${$selectedComponent?._id}/new` |
|
|
$goto(`../${$selectedScreen._id}/components/${id}/new`) |
|
|
) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|