Small corrections

This commit is contained in:
Christoph Kluge 2023-12-12 15:42:14 +01:00
parent 119637cb9b
commit ee6d286cd7
2 changed files with 3 additions and 4 deletions

View File

@ -35,13 +35,11 @@
function closeAndApply() {
metricsInHistograms = [...pendingMetrics] // Set for parent
isOpen = !isOpen
updateConfiguration({
name: cluster ? `user_view_histogramMetrics:${cluster}` : 'user_view_histogramMetrics',
value: metricsInHistograms
})
isOpen = false
}
</script>
@ -62,5 +60,6 @@
</ModalBody>
<ModalFooter>
<Button color="primary" on:click={closeAndApply}> Close & Apply </Button>
<Button color="secondary" on:click={() => (isOpen = !isOpen)}> Close </Button>
</ModalFooter>
</Modal>

View File

@ -224,7 +224,7 @@
bind:metrics={metrics}
bind:isOpen={isMetricsSelectionOpen} />
<HistogramSelection
<HistogramSelection
bind:cluster={selectedCluster}
bind:metricsInHistograms={metricsInHistograms}
bind:isOpen={isHistogramSelectionOpen} />