-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UX: Better composer hyperlink modal #8160
UX: Better composer hyperlink modal #8160
Conversation
You've signed the CLA, pmusaraj. Thank you! This pull request is ready for review. |
app/assets/javascripts/discourse/controllers/insert-hyperlink.js.es6
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,47 @@ | |||
import ModalFunctionality from "discourse/mixins/modal-functionality"; | |||
import { default as computed } from "ember-addons/ember-computed-decorators"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESLint error, computed
is no longer used: https://travis-ci.org/discourse/discourse/jobs/593993307#L701-L702
I support this cleanup, feel free to merge! |
@pmusaraj It seems it's no longer possible to submit the form by pressing enter/return. Could this PR be the cause? |
Yes, it’s possible. I think our modals in general do not submit on return, I think we should fix that globally. |
This brings the hyperlink modal in line with all other modals (upload, date, etc.) by placing the fixed modal element outside of the composer.
Before:
After: