Skip to content

Conversation

tony19
Copy link
Contributor

@tony19 tony19 commented Oct 24, 2020

Currently, clicking the toast notification from Vue UI has no effect other than closing the notification. This PR opens a browser to the originating Vue UI upon notification click.

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Docs
  • Underlying tools
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

Other information:

node-notifier 5/6 has a bug in Windows that does not forward notification-click events, so this change will only work on other platforms until that gets fixed.

@tony19 tony19 force-pushed the feat/toast-callback branch from f2edd09 to 934fa3d Compare October 24, 2020 03:24
error: path.resolve(__dirname, '../../src/assets/error.png')
}

let notifCallback = null
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

notifCallback can be null, which is safe because node-notifier defaults it to a no-op.

@haoqunjiang
Copy link
Member

Thanks! This PR looks good. Could you please fix the merge conflicts here so that I can merge it?

@tony19
Copy link
Contributor Author

tony19 commented Jan 6, 2021

@sodatea Ok, resolved merged conflicts. Thanks!

Copy link
Member

@haoqunjiang haoqunjiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@haoqunjiang haoqunjiang merged commit 637414c into vuejs:dev Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants