diff --git a/src/frontend/src/components/UI/Dropdown.vue b/src/frontend/src/components/UI/Dropdown.vue index b3aac56..8809650 100644 --- a/src/frontend/src/components/UI/Dropdown.vue +++ b/src/frontend/src/components/UI/Dropdown.vue @@ -4,7 +4,7 @@ ref="trigger" class="dropdown-trigger" :class="{ 'dropdown-trigger--open': isOpen}" - @click="toggleDropdown" + @click.stop="toggleDropdown" @keydown="handleTriggerKeydown" :disabled="disabled" > @@ -143,6 +143,9 @@ export default { return this.modelValue === option[this.valueKey] }, handleClickOutside(event) { + + console.log("HANDLE click outside") + if (!this.$refs.dropdown?.contains(event.target)) { this.closeDropdown() } diff --git a/src/frontend/src/components/UI/RouteDropdown.vue b/src/frontend/src/components/UI/RouteDropdown.vue new file mode 100644 index 0000000..86c5f0c --- /dev/null +++ b/src/frontend/src/components/UI/RouteDropdown.vue @@ -0,0 +1,507 @@ + + + + + \ No newline at end of file diff --git a/src/frontend/src/components/layout/bulkedit/BulkEditRow.vue b/src/frontend/src/components/layout/bulkedit/BulkEditRow.vue index 41aeed3..3b5d815 100644 --- a/src/frontend/src/components/layout/bulkedit/BulkEditRow.vue +++ b/src/frontend/src/components/layout/bulkedit/BulkEditRow.vue @@ -293,7 +293,7 @@ export default { destinationCheck() { if (((this.destinations ?? null) === null) || this.destinations.length === 0) - return false; + return true; return !this.destinations?.some(d => d.annual_amount == null); @@ -301,7 +301,7 @@ export default { routeCheck() { if (((this.destinations ?? null) === null) || this.destinations.length === 0) - return false; + return true; return this.destinations?.every(d => d.routes?.some((route) => route.is_selected)); }, @@ -352,7 +352,7 @@ export default { if (this.isInitialized && oldVal === false && newVal === true - && this.initialCheckStates?.destination !== true) { + && this.initialCheckStates?.destination === false) { // Hier war !== true, sollte === false sein this.showDestinationCheck = true; if (this.initialCheckStates) { this.initialCheckStates.destination = true; @@ -363,7 +363,7 @@ export default { if (this.isInitialized && oldVal === false && newVal === true - && this.initialCheckStates?.route !== true) { + && this.initialCheckStates?.route === false) { // Hier war !== true, sollte === false sein this.showRouteCheck = true; if (this.initialCheckStates) { this.initialCheckStates.route = true; diff --git a/src/frontend/src/components/layout/config/Apps.vue b/src/frontend/src/components/layout/config/Apps.vue index 451b131..5bb9dbb 100644 --- a/src/frontend/src/components/layout/config/Apps.vue +++ b/src/frontend/src/components/layout/config/Apps.vue @@ -1,20 +1,22 @@ @@ -65,6 +67,12 @@ export default { \ No newline at end of file diff --git a/src/frontend/src/components/layout/config/Nodes.vue b/src/frontend/src/components/layout/config/Nodes.vue index 2f221b2..b308524 100644 --- a/src/frontend/src/components/layout/config/Nodes.vue +++ b/src/frontend/src/components/layout/config/Nodes.vue @@ -1,5 +1,5 @@