Moriz Wahl
a3178a91b4
refactor(webapp): store for categories ( #8551 )
...
* after authentification, query the categories if active and store them
* get categories from store
* use category store to get categories
* get categories from store
* mock store to have access to categories
* to get rid of the active categories config variable in the frontend, the Category query returns an empty array when categories are not active
* remove CATEGORIES_ACTIVE from .env
* should return string to avoid warnings in console
* replace all env calls for categories active by getter from store
* use categoriesActive getter
* ignore order of returned categories
* mixin to get the category infos from the store, to ensure, that the quey has been called
* fix misspelling
---------
Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
2025-05-27 15:03:26 +02:00
mahula
57b6b81a5f
linting
2023-10-31 11:24:27 +01:00
mahula
7480f2c523
replace deprecated jest methods in webapp unit tests
2023-10-31 11:10:38 +01:00
elweyn
866079d307
Fix linting.
2023-06-08 09:49:42 +02:00
elweyn
5b40122b0e
Remove async of cypress command and add contribution default value to post edit _id.
2023-06-08 09:44:11 +02:00
Wolfgang Huß
65b8780786
Merge branch 'master' into merge-6336-into-6339-optimize-event-create-and-update
2023-06-07 21:34:47 +02:00
514a5c4894
fix warning in edit post test
2023-06-05 20:53:03 +02:00
elweyn
a24e2186be
Fix linting
2023-06-05 17:55:45 +02:00
elweyn
734891e93d
Fix localization of edit events
...
Co-authored-by: ogerly <fridolin@tutanota.com>
2023-06-05 17:54:37 +02:00
elweyn
17e0d0a85c
Rename creatEvent to createEvent
2023-06-01 13:04:06 +02:00
elweyn
ef7bb652bc
Fix linting.
...
Co-authored-by: maeckes-infinitylabs <markus@infinity.labs.ooo>
2023-05-31 20:44:44 +02:00
elweyn
e18fa0cea0
Fix test of post edit.
...
Co-authored-by: maeckes-infinitylabs<markus@infinity.labs.ooo>
2023-05-31 12:32:48 +02:00
elweyn
1ca274fad4
Add creatEvent to the update post so the form has event specific fields.
...
Co-authored-by: elweyn<heine.hannes@gmail.com>
Co-authored-by: maeckes-infinitylabs<markus@infinitylabs.ooo>
2023-05-31 11:01:28 +02:00
Wolfgang Huß
a46dd099ac
Fix webapp test by sending 'null' if group in post is undefined
2023-03-14 07:32:19 +01:00
Wolfgang Huß
fd62a03820
Add hint text to create and edit a post of a group
2023-03-09 18:06:14 +01:00
Wolfgang Huß
1703638dd6
Implement group indication headline for view and edit post page
2022-10-07 23:26:47 +02:00
Moriz Wahl
938f5ccdf9
fix all tests
2022-07-25 23:20:05 +02:00
8a53bda51c
lint fixes
2021-04-26 02:21:50 +02:00
a71e864049
asyncData test post/edit/_id.spec.js
2021-04-26 01:52:04 +02:00
194178854f
lint fixes
2021-04-25 16:34:14 +02:00
43c1c268ca
coverage post/edit/_id.spec.js
2021-04-25 16:33:35 +02:00
Moriz Wahl
a4907f2bcb
localised error message for cannot edit post
2020-01-28 10:18:15 +01:00
mattwr18
123fc2f666
Fix lint with updated linter
2019-11-18 21:54:24 +01:00
roschaefer
7c278d7c7f
fix: send 403 if you try to edit another's post
...
This also fixes the glitch that you click on "Edit post" and the
contribution form is empty.
2019-11-08 17:30:29 +01:00
Matt Rider
8735045d11
Update cypress tests, post query
2019-08-20 20:13:29 +02:00
Matt Rider
f302961376
Get categories working with UpdatePost, refactor
2019-07-01 18:00:55 -03:00
Matt Rider
5266de2c62
Set dropdown with language of post if exists
...
follow `PR` review by @Tirokk
2019-06-13 17:29:33 -03:00
Matt Rider
ff0b4b6867
Fix lint
2019-05-29 09:47:24 -03:00
5202763dd8
frontend lint fixes
2019-05-23 19:40:39 +02:00
Robert Schäfer
4efb834599
Move ContributionForm in dedicated folder
2019-04-16 01:39:47 +02:00
Robert Schäfer
c91a61af89
Merging webapp to master
2019-03-20 21:06:17 +01:00