@@ -64,7 +64,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
64
64
</v-row >
65
65
<div
66
66
ref =" toolbar"
67
- id =" analysis-toolbar"
68
67
class =" d-flex align-center flex-wrap my-2 col-gap-2 row-gap-4"
69
68
>
70
69
<!-- Toolbar -->
@@ -109,8 +108,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
109
108
<v-icon :icon =" $options.icons.mdiRefresh" />
110
109
<v-tooltip >Refresh data</v-tooltip >
111
110
</v-btn >
112
- <!-- Box plot sort input teleports here -->
113
111
</v-defaults-provider >
112
+ <!-- Box plot sort input teleports here -->
114
113
</div >
115
114
<AnalysisTable
116
115
v-if =" chartType === 'table'"
@@ -122,23 +121,23 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
122
121
v-else-if =" chartType === 'box'"
123
122
:tasks =" filteredTasks"
124
123
:timing-option =" timingOption"
125
- :sort-input-teleport-target =" toolbar?.id "
124
+ :sort-input-teleport-target =" toolbarRef "
126
125
v-model:initial-options =" boxPlotOptions"
127
126
/>
128
127
<TimeSeries
129
128
v-else-if =" chartType === 'timeSeries'"
130
129
:workflowIDs =" workflowIDs"
131
130
:platform-option =" tasksFilter.platformOption"
132
131
:timing-option =" timingOption"
133
- :sort-input-teleport-target =" toolbar?.id "
132
+ :sort-input-teleport-target =" toolbarRef "
134
133
v-model:initial-options =" timeseriesPlotOptions"
135
134
/>
136
135
</v-container >
137
136
</div >
138
137
</template >
139
138
140
139
<script >
141
- import { ref } from ' vue'
140
+ import { useTemplateRef } from ' vue'
142
141
import {
143
142
debounce ,
144
143
pick ,
@@ -268,8 +267,7 @@ export default {
268
267
*/
269
268
const chartType = useInitialOptions (' chartType' , { props, emit }, ' table' )
270
269
271
- /** @type {import('vue').Ref<HTMLElement>} template ref */
272
- const toolbar = ref (null )
270
+ const toolbarRef = useTemplateRef (' toolbar' )
273
271
274
272
/**
275
273
* The Vuetify data table options (sortBy, page etc).
@@ -292,10 +290,10 @@ export default {
292
290
return {
293
291
tasksFilter,
294
292
chartType,
295
- toolbar ,
293
+ toolbarRef ,
296
294
dataTableOptions,
297
295
boxPlotOptions,
298
- timeseriesPlotOptions
296
+ timeseriesPlotOptions,
299
297
}
300
298
},
301
299
0 commit comments