xtreme1
xtreme1 copied to clipboard
[image-tool] Close Button Not Working in View Mode
Describe the bug When in view mode, clicking the close button doesn't perform the expected action. The issue appears to be related to function handling in the view.ts file.
To Reproduce Steps to reproduce the behavior:
- Open any data in view mode(image-tool)
- Try to close it using the close button
- Notice that the close action doesn't complete properly(ex. close the browser tab when clicked)
Expected behavior The close button should properly close the browser tab when clicked.
AS-IS
function onAction() {}
TO-BE
function onAction(action: FlowAction) {
switch (action) {
case FlowAction.close:
onClose();
break;
}
}
Desktop (please complete the following information): OS: Mac Browser Chrome Version 124.0.6367.93
Additional context Thank you all for your contributions and great features. They are always appreciated.