468 Commits

Author SHA1 Message Date
David Wheatley
42158112bf Add missing Button-label span from ButtonLink (#113)
Every sideNav item created by flarum/core includes this span, so tags should too.
2021-02-17 08:50:35 -05:00
flarum-bot
03426b57a0 Bundled output for commit 300e47cfb3e9b017970afe2630708b609f36ed61 [skip ci] 2021-02-08 02:34:44 +00:00
Alexander Skvortsov
300e47cfb3 Fix editing tags (#117)
`tagLabel` expects an object with an isChild method, so we can just wrap needed data in a Tag object. We don't want to update `this.tag`, since that would mess things up if the user exits the modal without saving.
2021-02-07 18:33:49 -08:00
Charlie
1980636ed6 Max-height for tags settings (#116) 2021-02-07 17:11:42 -05:00
flarum-bot
0765d3fdb7 Bundled output for commit 9c77d677c6ee8ba50b519d9e25c1669460dd0bde [skip ci] 2021-02-07 06:39:33 +00:00
Alexander Skvortsov
9c77d677c6 Fix submitting TagDiscussionModal via enter key
The DOM submit method doesn't raise a `submit` event (https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/submit), so submitting the form this way just refreshed the page (default HTML form behavior). The recommended fix (and the one implemented here) is to simulate a button-triggered submission.

Fixes https://github.com/flarum/core/issues/2595
2021-02-07 01:38:39 -05:00
flarum-bot
7f14e72626 Bundled output for commit b6ca4c8c8412d992f8a8ac5f2dae998959c9e701 [skip ci] 2021-02-01 21:03:27 +00:00
David Wheatley
b6ca4c8c84 Add "TagLabel--child" class to tagLabel to aid with custom theming (#114) 2021-02-01 16:02:36 -05:00
flarum-bot
3573b694e5 Bundled output for commit b985aa86316bc417ae07c9428386b775d70e38f5 [skip ci] 2021-01-26 22:09:35 +00:00
Sami Mazouz
b985aa8631 Add permission to bypass tag count requirements (#111) 2021-01-26 17:08:47 -05:00
SychO9
fe4803a07c Fix starting a discussion without tags, without global startDiscussion perm 2021-01-26 17:06:14 -05:00
SychO9
c2e5c1008f Fix starting discussion without tags 2021-01-26 17:06:14 -05:00
SychO9
5291c969a4 Null positions refer to secondary tags 2021-01-12 21:28:44 -05:00
SychO9
550a04df83 Use the correct setting keys 2021-01-12 21:28:44 -05:00
Alexander Skvortsov
c9b9c1ddce Properly return allow / deny instead of boolean 2020-12-17 19:51:53 -05:00
Alexander Skvortsov
64d965fa17 Fix logic for determining whether users can add tags to a discussion 2020-12-16 17:31:44 -05:00
Alexander Skvortsov
c099c96703 Fix old-style return true in policy 2020-12-16 17:31:02 -05:00
Daniël Klabbers
765254c4f5 changelog and constraint for beta 15 2020-12-15 09:41:50 +01:00
Daniël Klabbers
9429b229bb npm audit fix 2020-12-15 09:34:41 +01:00
Alexander Skvortsov
f74a348525 Update composer metadata for admin dashboard 2020-12-08 19:58:39 -05:00
Alexander Skvortsov
bf31f3e8ec Refactor for Policies Revamp (#105) 2020-12-08 19:02:08 -05:00
Sami Mazouz
384f17ea94 Use new extenders (#102) 2020-12-08 14:20:50 -05:00
Alexander Skvortsov
2fd76a8d75 Remove deprecated TagWillBeSaved event 2020-12-08 00:02:46 -05:00
flarum-bot
423d156d50 Bundled output for commit 46d094192db860d980a27743bc5f02ee70fcfbe7 [skip ci] 2020-11-30 19:08:06 +00:00
Miha Frangež
46d094192d Add icons to tag tiles (#104) 2020-11-30 14:06:51 -05:00
flarum-bot
ad85470e54 Bundled output for commit 076893f8618d97625ea4c832f3f3b35309550584 [skip ci] 2020-11-25 22:04:02 +00:00
Alexander Skvortsov
076893f861 Update for Admin UX Redesign (#103)
* Add composer metadata for admin ux redesign
* Admin js updates for admin ux redesign
2020-11-25 17:02:57 -05:00
flarum-bot
870c3e7c0a Bundled output for commit 8c5bbe1f740219f6139cb9e9725ed6bff7db9a2a [skip ci] 2020-11-09 18:16:24 +00:00
Sami Mazouz
8c5bbe1f74 Remove unused declaration of tags property (#100) 2020-11-09 13:14:25 -05:00
flarum-bot
742e62d0f0 Bundled output for commit bacac3ca9b6260d54f78d1aa1cf23fcfa77cac0f [skip ci] 2020-10-29 15:32:27 +00:00
Alexander Skvortsov
bacac3ca9b Fix hidden bidi 2020-10-29 11:31:08 -04:00
flarum-bot
0fc7563257 Bundled output for commit f610522f0eba41f829f1e0a80435bab61f4bbd77 [skip ci] 2020-10-22 23:01:10 +00:00
Daniël Klabbers
f610522f0e guest discussion creation improved (#98)
This fixes an issue where Guests were no longer able to click the "new discussion" button and be shown the Log In Modal.
2020-10-22 19:00:09 -04:00
Daniël Klabbers
4baa8a62d8 changelog and dep for v0.1.0-beta.14 2020-10-15 16:19:30 +02:00
Daniël Klabbers
bfec35cc39 npm audit security vulnerabilities patched 2020-10-14 10:03:16 +02:00
flarum-bot
08e638f9f5 Bundled output for commit b64e5d0998f9f4655fed0557c90a8eef526589de [skip ci] 2020-10-07 21:53:40 +00:00
Alexander Skvortsov
b64e5d0998 Fix duplicate tags in TagDiscussionModal
Add an inclusion check for the tag itself as well as its parent before adding it to the list of selected tags.
2020-10-07 17:52:38 -04:00
flarum-bot
bdb55e45c4 Bundled output for commit c6829edd85f6f36214860c202b6d686c0959079a [skip ci] 2020-10-05 15:53:24 +00:00
Wadim Kalmykov
c6829edd85 fix tagLabel links (#96) 2020-10-05 11:52:11 -04:00
Sami Mazouz
e787048af1 Fix Editing Discussion Tags Permission (#95) 2020-10-03 18:37:56 -04:00
Alexander Skvortsov
80f6e9c808 Remove unused import 2020-10-03 18:04:06 -04:00
flarum-bot
ddc2711146 Bundled output for commit c2bb7d45f616cc1c41196805336ed8e6874a751a [skip ci] 2020-10-03 00:51:55 +00:00
Alexander Skvortsov
c2bb7d45f6 Use Link component instead of route patch 2020-10-02 20:51:03 -04:00
flarum-bot
955309cc5f Bundled output for commit 88508c459cf81ad397e8ebe66f29d4ba66d73d2d [skip ci] 2020-10-03 00:50:15 +00:00
Alexander Skvortsov
88508c459c Use Stream util instead of m.stream 2020-10-02 20:49:17 -04:00
Rafael Horvat
1f0b87fede Renamed TagWillBeSaved => Saving. Deprecated the old event. (#92) 2020-10-02 12:55:25 -04:00
flarum-bot
48afda2422 Bundled output for commit 75db6b48782f972b8d1987afb6054a31c00f4ade [skip ci] 2020-09-24 15:31:05 +00:00
Wadim Kalmykov
75db6b4878 Remove call to undefined method handleErrors (#94) 2020-09-24 11:30:10 -04:00
flarum-bot
6b83c71e33 Bundled output for commit f61b5201d17041c98a16b825de3151cb636c89c6 [skip ci] 2020-09-24 03:01:22 +00:00
Alexander Skvortsov
f61b5201d1 Mithril 2 Update (#93)
Update for Mithril 2

- TagLinkButtons now have children passed in, even though those children are not directly shown. This is because those children are used if that TagLinkButton is the active element in a dropdown.
- Since `m.redraw.strategy('all')` is no longer an option, we use keys to force a full-page rerender after rearranging tag order in the admin dashboard
2020-09-23 23:00:15 -04:00