xtreme1 icon indicating copy to clipboard operation
xtreme1 copied to clipboard

[image-tool] Close Button Not Working in View Mode

Open seungdeok opened this issue 1 year ago • 0 comments

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:

  1. Open any data in view mode(image-tool)
  2. Try to close it using the close button
  3. 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.

view.ts

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.

seungdeok avatar Mar 04 '25 16:03 seungdeok