10 Commits

Author SHA1 Message Date
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
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
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