Franz Liedke
b44b79eba9
Fix typo and update outdated doc block
2020-06-26 18:23:56 +02:00
Franz Liedke
7816b61bfb
Remove documentation for obsolete component prop
2020-06-26 16:06:56 +02:00
Franz Liedke
7dc3a194c3
Expose a method for clearing notification list
...
Needed for pusher extension.
Refs #2185 .
2020-06-26 15:10:41 +02:00
Franz Liedke
088eb0c4f2
Move DiscussionListState to correct folder
2020-06-26 12:52:33 +02:00
Franz Liedke
2ba67b021f
Expose state classes via compat
...
This way, they can be extended by extensions.
2020-06-26 12:50:43 +02:00
Alexander Skvortsov
71e313e677
Clean up app.current, app.previous in JS ( #2156 )
...
- Encapsulate app.current, app.previous in PageState objects
- Reorganize Page classes to use one central base class in common
Co-authored-by: Franz Liedke <franz@develophp.org >
2020-06-19 17:41:26 -04:00
Franz Liedke
898d68d9f3
Remove leftover property
...
Refs #2150 .
2020-06-19 02:27:01 +02:00
Alexander Skvortsov
62fe9db732
Don't store PostUser instance in CommentPost ( #2184 )
...
* Don't save component state in CommentPost
2020-06-18 20:10:25 -04:00
Alexander Skvortsov
5c1663d8f1
Move Discussion List State into its own class ( #2150 )
...
Extract discussion list state
2020-06-18 19:53:40 -04:00
Alexander Skvortsov
4a804dbbbc
Remove app.search instance, cache app.cache.searched ( #2151 )
...
* Moved search state logic into search state
2020-06-18 18:47:01 -04:00
Alexander Skvortsov
646b35374d
Don't store checkbox instances in NotificationGrid ( #2183 )
...
* Don't store checkbox states in NotificaitonGrid, use props for loading in Checkbox and Switch, replace preferenceSaver with internal management of loading state
2020-06-18 17:28:05 -04:00
Alexander Skvortsov
65f2d5fb75
Extract NotificationList state ( #2185 )
...
* Extract NotificationList state
2020-06-18 17:08:06 -04:00
Hasan Özbey
0aed3764c4
Scroll to edited post or inform the user ( #2108 )
...
* scroll to edit or inform the user
2020-05-30 22:28:08 -04:00
Alexander Skvortsov
b38bd60362
Added simply confirmation popup for hiding / deleting posts ( #2135 )
2020-05-07 09:18:04 +02:00
Franz Liedke
89ef14faf1
Run prettier for all JS files
2020-04-17 11:57:55 +02:00
w-4
117c2f65ac
Fix PostStreamScrubber click ( #1945 )
2020-04-10 21:16:57 +02:00
Sami Mazouz
30942bdf38
Fix new post injected above unread sticky ( #1868 )
...
Refresh the discussion list instead of prepending the new post
2020-04-03 21:26:51 +02:00
Daniël Klabbers
2e2aa8747e
fixed an issue with Post--by-start-user for discussions that contain posts of deleted users
2020-04-01 14:40:40 +02:00
Daniël Klabbers
090b05736a
showing start user in class list now
2020-03-09 13:39:26 +01:00
D Mata
f9556d9d6a
Update AvatarEditor.js onchange to oninput ( #1570 )
...
onchange does not work in IE11 and other IE browsers. This change works with all modern browsers as well.
2020-02-10 23:54:41 +01:00
Franz Liedke
2f3d9995d1
Fix race condition in post preview
...
The post composer could have been closed in between scheduling and
executing the callback.
Fixes flarum/org#58.
Refs #1881 .
2020-02-07 12:17:11 +01:00
Clark Winkelmann
02ceed4fed
Fix the "reply posted" alert empty body
2020-01-26 23:37:19 +01:00
David Sevilla Martín
02899d4f68
Add Content for User page, preload user & throw 404 accordingly ( #1901 )
2020-01-23 00:01:26 +01:00
w-4
17c86b82bf
history back function fix
...
it shouldn't check for canGoBack again after the array pop()
2019-11-24 13:59:51 -05:00
Clark Winkelmann
6d2b50722a
Pass event to KeyboardNavigatable whenCallback ( #1922 )
...
This way the callback can know which key is pressed.
2019-11-15 15:08:36 +01:00
Daniël Klabbers
1ba4a0b87e
Fix existing Post component classes being dropped
2019-11-12 20:26:07 +01:00
Daniël Klabbers
1f2566c32c
Improved naming of class for post by actor.
...
Made class list for post extensible by using a separate method.
2019-11-11 12:59:26 +01:00
Matthew Kilgore
d5d769ebb1
Added border around post made by active user
2019-11-11 12:13:36 +01:00
Madalin Tache
bbd891965f
Update window size ( #1894 )
...
This small change attempts to fix #1727 , as i just got my eye on it and figured i could simply fix it while seeing it.
2019-10-01 23:48:54 +02:00
David Sevilla Martín
7a684660e9
Enable scrollbars in login button popups ( #1900 )
...
Fixes #1716
2019-10-01 23:37:42 +02:00
David Sevilla Martín
a9557c399a
Fix errors caused by deletion alert when deleting users ( #1883 )
...
Refs #1788
TypeError: t.showDeletionAlert is not a function
at onSuccess(./src/forum/utils/UserControls.js:104:12)
Also, don't override 'this' param with user object for editAction
2019-09-13 00:34:05 +02:00
David Sevilla Martín
24964b94bf
Mark notification as read without visiting discussion ( #1874 )
2019-09-09 23:36:06 +02:00
David Sevilla Martín
2e647cdda8
Fix error thrown if textarea doesn't exist in TextEditor ( #1852 )
...
* Prevent textarea not existing from causing errors to be thrown
* Replace [0] with .length
2019-09-09 17:05:11 -04:00
Franz Liedke
0191babb05
Optimize ScrollListener performance
...
Listen to "scroll" event and throttle callback executions instead
of actively polling for changes to the scroll position.
Fixes #1222 .
2019-09-05 02:17:09 +02:00
Franz Liedke
29df6b60be
Tweak translation keys, always use full keys
...
Makes them easier to grep when editing / removing.
Refs #1750 , #1788 .
2019-08-14 08:34:36 +02:00
Franz Liedke
1e6f175379
Extract real method
...
Refs #1750 , #1788 .
2019-08-14 08:34:14 +02:00
Tobias Karlsson
37e0a5579b
Improve feedback on user deletion
...
Fixes #1750 , #1777
2019-08-13 22:56:24 +02:00
David Sevilla Martín
985b87da6c
Visit home page if no previous route exists
...
Fixes #1777
2019-06-27 14:58:05 -04:00
Daniël Klabbers
c7d2e165d7
Fixes #1686
...
- further cleaned up the toggle action
- there's no way to remove the redraws because then the jquery isn't being fired properly
2019-01-25 05:37:45 +01:00
Daniël Klabbers
c67fb2d4b6
fixes #1686 , unable to edit user password
2019-01-16 09:58:22 +01:00
Toby Zerner
40dc6ac604
Fix discussion list scroll position not being maintained when hero is not visible
2018-12-03 08:50:54 +10:30
Toby Zerner
b474843cc2
Clear the search loading indicator after pressing Enter
2018-11-14 11:38:28 +10:30
David Sevilla Martín
e8b8cd0078
Move EditUserModal fields into an ItemList to make more extendable ( #1593 )
2018-11-14 08:00:43 +10:30
Toby Zerner
b826f9ce36
Trigger input event when text is programmatically inserted
2018-11-12 17:21:37 +10:30
Toby Zerner
c13dfa2228
Add a toolbar area to the TextEditor component
...
This is to be used for formatting buttons and the like. Although it is
displayed in the controls area at the moment, it is conceptually
different and may be relocated to the top of the text editor in the
future.
2018-11-12 17:21:15 +10:30
Toby Zerner
bf3934d16f
Improve appearance of text editor buttons
...
- Change preview icon to Font Awesome Regular instead of Solid
- Give the preview button a tooltip
- Change submit button icon to paper plane (shown on mobile)
- Tweak mobile header button touch target
- Scroll overflowing text editor controls horizontally
2018-11-12 17:19:37 +10:30
Clark Winkelmann
0f9118fe2b
Clean PostStreamScrubber code
2018-11-11 19:03:22 +01:00
Clark Winkelmann
95f0edcd80
Fix scrubber index not limited to max items count when bypassing view()
2018-11-11 19:00:51 +01:00
Toby Zerner
9de786d1e6
Fix notification list not displaying "empty" message
2018-11-11 16:46:54 +10:30
Toby Zerner
104d3982fe
Fix regression in admin routing in subdirectory. fixes #1606
...
Because admin routing uses the "hash" strategy, the base path does not
need to be taken into account.
2018-10-29 07:25:17 +10:30