File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/components/cylc/workspace Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -61,9 +61,9 @@ import '@lumino/default-theme/style'
61
61
*/
62
62
63
63
/**
64
- * Mitt event for adding a view to the workspace.
65
- * @typedef {Object} AddViewEvent
66
- * @property {string} name - the view to add
64
+ * Options for views in the workspace.
65
+ * @typedef {Object} IViewOptions
66
+ * @property {string} name - the view component name
67
67
* @property {Record<string,*>} initialOptions - prop passed to the view component
68
68
*/
69
69
@@ -96,7 +96,7 @@ const mainDiv = ref(null)
96
96
/**
97
97
* Mapping of widget ID to the name of view component and its initialOptions prop.
98
98
*
99
- * @type {import('vue').Ref<Map<string, AddViewEvent >>}
99
+ * @type {import('vue').Ref<Map<string, IViewOptions >>}
100
100
*/
101
101
const views = ref (new Map ())
102
102
@@ -150,7 +150,7 @@ onBeforeUnmount(() => {
150
150
/**
151
151
* Create a widget and add it to the dock.
152
152
*
153
- * @param {AddViewEvent} event
153
+ * @param {IViewOptions} param0
154
154
* @param {boolean} onTop
155
155
*/
156
156
async function addView ({ name, initialOptions = {} }, onTop = true ) {
You can’t perform that action at this time.
0 commit comments