1
0
mirror of https://github.com/flarum/core.git synced 2025-07-25 02:31:17 +02:00
Commit Graph

88 Commits

Author SHA1 Message Date
David Sevilla Martín
5e53145bab 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 Martin
5530422210 Fixes an issue where deleting a nonexistent model would error instead of resolving gracefully 2019-09-11 18:14:37 -04:00
David Sevilla Martín
80ff7eb4ea Mark notification as read without visiting discussion (#1874) 2019-09-09 23:36:06 +02:00
David Sevilla Martín
827c8ff50f 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
Matthew Kilgore
12cc20ad62 Fix the new edit user permission label (#1870) 2019-09-08 13:31:57 -04:00
Franz Liedke
cf16b6c20b 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
Matthew Kilgore
e5e505e85a Add Edit User permission to permissions grid (#1859) 2019-09-03 23:54:38 +02:00
Franz Liedke
4cd48ac048 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
e7cdd497dd Extract real method
Refs #1750, #1788.
2019-08-14 08:34:14 +02:00
Tobias Karlsson
be6d42d46f Improve feedback on user deletion
Fixes #1750, #1777
2019-08-13 22:56:24 +02:00
Franz Liedke
1702929079 a11y: Try to make screenreaders read tooltips
Refs #1835.
2019-08-08 22:40:30 +02:00
David Sevilla Martín
20dfcfc39c Visit home page if no previous route exists
Fixes #1777
2019-06-27 14:58:05 -04:00
Franz Liedke
b35dd6d405 Fix storing dynamic mail settings
Refs #1169.
2019-03-20 22:02:06 +01:00
Franz Liedke
7ffe1502ee Allow configuring all drivers via frontend (#1169)
This includes an API endpoint for fetching the list of possible
drivers and their configuration fields. In the future, this can
be extended to include more meta information about each field.
2019-03-19 09:56:20 +01:00
Franz Liedke
cc92e31174 Remove dead code
Probably a leftover from copy-pasting the BasicsPage.
2019-03-17 19:02:46 +01:00
Franz Liedke
8948b8214a Fix last commit 2019-03-15 17:57:11 +01:00
Franz Liedke
1578dfe0e3 Mail settings: Only show necessary fields (#1169) 2019-03-15 17:54:14 +01:00
Daniël Klabbers
48064184a7 Copied over logic from EditTagModal to allow additional attributes to be send
to the API based on additional fields rendered by extending the fields.
2019-02-18 08:43:47 +01:00
Daniël Klabbers
2dced2e6c8 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
a39782368e fixes #1686, unable to edit user password 2019-01-16 09:58:22 +01:00
Toby Zerner
4365fa3c52 Fix discussion list scroll position not being maintained when hero is not visible 2018-12-03 08:50:54 +10:30
Toby Zerner
e98a1d33e9 Add "clear cache" button to admin 2018-11-22 08:03:43 +10:30
Toby Zerner
192b77de69 Clear the search loading indicator after pressing Enter 2018-11-14 11:38:28 +10:30
David Sevilla Martín
90bb012ab8 Move EditUserModal fields into an ItemList to make more extendable (#1593) 2018-11-14 08:00:43 +10:30
Toby Zerner
b1e2322581 Trigger input event when text is programmatically inserted 2018-11-12 17:21:37 +10:30
Toby Zerner
b49774d0e2 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
a6a4cf3fbc 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
3d1578b89a Clean PostStreamScrubber code 2018-11-11 19:03:22 +01:00
Clark Winkelmann
87f94e64e4 Fix scrubber index not limited to max items count when bypassing view() 2018-11-11 19:00:51 +01:00
Toby Zerner
e02b18d08e Fix notification list not displaying "empty" message 2018-11-11 16:46:54 +10:30
Clark Winkelmann
8e5099711f Use ItemList for EditGroupModal fields (#1625) 2018-11-07 22:15:19 +01:00
Daniël Klabbers
ddeb005a7a Update EditGroupModal.js
fixed placeholder icon name fa 4 style to fa 5 style with `fas fa-bolt`
2018-10-31 14:28:50 +01:00
Toby Zerner
9b24edc391 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
Clark Winkelmann
cc1cc20a52 Update Font Awesome icons page link (#1615) 2018-10-24 21:20:49 +02:00
Franz Liedke
ccf1110faf Merge pull request #1594 from datitisev/item-list
Allow ItemList method chaining (add, merge, remove, replace)
2018-10-10 00:28:03 +02:00
David Sevilla Martín
df9c4596e3 Allow ItemList method chaining (add, merge, remove, replace) 2018-10-05 19:30:14 -04:00
Toby Zerner
083dcc3700 The document JS payload attribute was previously renamed to apiDocument 2018-09-30 09:24:25 +09:30
Toby Zerner
31b5b4afac Clean up PostsUserPage placeholder 2018-09-23 10:12:12 +09:30
David Sevilla Martín
46ef76266a Allow admins to see last online text (#1540)
* Allow admins to see last online text

* Use viewLastSeenAt permission

* Move permission to UserSerializer, removed from ForumSerializer

* Remove extra comma from ForumSerializer to keep diff clean

* Add permission to new seed migration
2018-09-22 23:55:53 +02:00
David Sevilla Martín
49d9571b8a Make user posts page similar to discussion page, add empty text 2018-09-22 14:02:14 -04:00
Clark Winkelmann
e407c9472a Clean composer promises (#1439)
* Remove unused login promise code

* Make promise usage consistent across composer action methods
2018-09-22 14:25:19 +09:30
Toby Zerner
0c429c1b9f Auth token and avatarUrl security improvements (#1514)
* Remove AbstractOAuth2Controller

There is no reason to provide an implementation for a specific oAuth2
library in core; it's not generic enough (eg. auth-twitter can't use it).

This code could be moved into another package which auth extensions
depend on, but it's a negligible amount of relatively simple code that
I don't think it's worth the trouble.

* Introduce login providers

Users can have many login providers (a combination of a provider name
and an identifier for that user, eg. their Facebook ID).

After retrieving user data from a provider (eg. Facebook), you pass the
login provider details into the Auth\ResponseFactory. If an associated
user is found, a response that logs them in will be returned. If not, a
registration token will be created so the user can proceed to sign up.
Once the token is fulfilled, the login provider will be associated with
the user.
2018-09-22 13:48:27 +09:30
Toby Zerner
ff18859f2e Remove the "debug" button from request error alerts
Using the browser's console to debug failed requests is much more powerful
2018-09-21 14:27:39 +09:30
Toby Zerner
50d2243fba Sort user discussion list properly 2018-09-21 11:55:00 +09:30
Toby Zerner
4690812402 Add "tiny" preset for LoadingIndicator
This is used in various places but had not been added since presets were
removed from Spin.js in a recent version upgrade.
2018-09-21 11:19:32 +09:30
Toby Zerner
c27c968837 Fix regression introduced by #1543
The Page component's config method wasn't being called, therefore the
bodyClass would not be applied.
2018-09-21 11:17:54 +09:30
Toby Zerner
ad33638a99 Fix up Notification model 2018-08-24 22:13:06 +09:30
Toby Zerner
f0d296bfb0 Rename notification.sender 2018-08-24 22:13:06 +09:30
Toby Zerner
3a21b44a71 Rename notification.time 2018-08-24 22:13:05 +09:30
Toby Zerner
4b931470ed Rename user.newNotificationsCount 2018-08-24 22:13:05 +09:30