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