diff --git a/src/components/cylc/cylcObject/Menu.vue b/src/components/cylc/cylcObject/Menu.vue
index 8c6f2c293c..a62b6e75a9 100644
--- a/src/components/cylc/cylcObject/Menu.vue
+++ b/src/components/cylc/cylcObject/Menu.vue
@@ -279,7 +279,7 @@ export default {
{
name: 'Log',
initialOptions: {
- relativeID: this.node.tokens.relativeID
+ relativeID: this.node.tokens.relativeID || null
}
}
)
diff --git a/src/components/cylc/workflow/Lumino.vue b/src/components/cylc/workflow/Lumino.vue
index 65151f188b..61cea3d875 100644
--- a/src/components/cylc/workflow/Lumino.vue
+++ b/src/components/cylc/workflow/Lumino.vue
@@ -19,14 +19,14 @@ along with this program. If not, see .
@@ -62,7 +62,7 @@ import { useDefaultView } from '@/views/views'
* Mitt event for adding a view to the workspace.
* @typedef {Object} AddViewEvent
* @property {string} name - the view to add
- * @property {Object=} initialOptions - prop passed to the view component
+ * @property {Record} initialOptions - prop passed to the view component
*/
const $eventBus = inject('eventBus')
@@ -135,16 +135,16 @@ onBeforeUnmount(() => {
/**
* Create a widget and add it to the dock.
*
- * @param {AddViewEvent} view
+ * @param {AddViewEvent} event
* @param {boolean} onTop
*/
-const addView = (view, onTop = true) => {
+const addView = ({ name, initialOptions = {} }, onTop = true) => {
const id = uniqueId('widget')
- const luminoWidget = new LuminoWidget(id, startCase(view.name), /* closable */ true)
+ const luminoWidget = new LuminoWidget(id, startCase(name), /* closable */ true)
dockPanel.addWidget(luminoWidget, { mode: 'tab-after' })
// give time for Lumino's widget DOM element to be created
nextTick(() => {
- views.value.set(id, view)
+ views.value.set(id, { name, initialOptions })
addWidgetEventListeners(id)
if (onTop) {
dockPanel.selectWidget(luminoWidget)
diff --git a/src/views/Log.vue b/src/views/Log.vue
index 39ff793073..ea89a51a59 100644
--- a/src/views/Log.vue
+++ b/src/views/Log.vue
@@ -56,7 +56,8 @@ along with this program. If not, see .
v-if="jobLog"
data-cy="job-id-input"
class="flex-grow-1 flex-column"
- v-model="relativeID"
+ :model-value="relativeID"
+ @update:modelValue="debouncedUpdateRelativeID"
placeholder="cycle/task/job"
clearable
/>
@@ -143,6 +144,8 @@ along with this program. If not, see .