Skip to content
Snippets Groups Projects
Commit b001e1d6 authored by Jan Ulrych's avatar Jan Ulrych
Browse files

Re #11476 - po přidání cílového stavu již lze otevřít export nabídku a zavřít...

Re #11476 - po přidání cílového stavu již lze otevřít export nabídku a zavřít okno pro smazání všeho
parent 4e59d048
No related branches found
No related tags found
2 merge requests!59Konec 6. iterace,!50#11476 - oprava nefunkčnosti po přidání cílového stavu
Pipeline #10076 passed
import { Component, Input } from '@angular/core';
import { ChangeDetectorRef, Component, Input } from '@angular/core';
import { DropdownItem } from 'src/app/model/dropdown-item.interface';
/**
......@@ -29,13 +29,17 @@ export class CustomButtonComponent {
dropUpIcon: string = 'fa fa-solid fa-caret-up';
isDropdownOpen: boolean = false;
constructor(private ref: ChangeDetectorRef) {}
// Public method to toggle dropdown state
/**
* Toggles the visibility of the dropdown menu.
*/
toggleDropdown(): void {
console.log('toggle dropdown');
this.isDropdownOpen = !this.isDropdownOpen;
this.ref.detectChanges();
}
// Get the appropriate icon based on dropdown state
......
......@@ -77,5 +77,6 @@ export class OverviewComponent {
*/
onDialogDeleteAllActionsCancel() {
this.isDeleteAllDialogOpen = false;
this.ref.detectChanges();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment