Don't use anonymous functions in chartcontainer

This commit is contained in:
Matthias 2023-07-16 16:54:10 +02:00
parent b722e1ff0a
commit 591606d043

View File

@ -158,14 +158,16 @@ const noDatasetText = computed((): string => {
} }
}); });
const showPlotConfigModal = ref(false); const showPlotConfigModal = ref(false);
const showConfigurator = () => {
function showConfigurator() {
if (props.plotConfigModal) { if (props.plotConfigModal) {
showPlotConfigModal.value = !showPlotConfigModal.value; showPlotConfigModal.value = !showPlotConfigModal.value;
} else { } else {
showPlotConfig.value = !showPlotConfig.value; showPlotConfig.value = !showPlotConfig.value;
} }
}; }
const refresh = () => {
function refresh() {
console.log('refresh', pair.value, props.timeframe); console.log('refresh', pair.value, props.timeframe);
if (pair.value && props.timeframe) { if (pair.value && props.timeframe) {
if (props.historicView) { if (props.historicView) {
@ -184,7 +186,7 @@ const refresh = () => {
}); });
} }
} }
}; }
watch( watch(
() => props.availablePairs, () => props.availablePairs,