FIX: Various improvements to bookmark modal UI (#10225)

* Do not autofocus name input on mobile
* Improve code for formatted reminder type times to not be computed, so the modal times update correctly
* Change wording of "Next Monday" to "Monday" for all days except when today is Monday
This commit is contained in:
Martin Brennan
2020-07-14 14:02:13 +10:00
committed by GitHub
parent ce39733b1a
commit f4f3e8c401
5 changed files with 55 additions and 19 deletions
@@ -9,7 +9,10 @@ moduleFor("controller:bookmark", {
beforeEach() {
logIn();
KeyboardShortcutInitializer.initialize(Discourse.__container__);
BookmarkController = this.subject({ currentUser: User.current() });
BookmarkController = this.subject({
currentUser: User.current(),
site: { isMobileDevice: false }
});
BookmarkController.onShow();
},