0
0
Fork 0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-05-16 21:34:58 +00:00

Aligned user preference endpoints in style and behaviour

Changes their endpoints and remove the user id from the URLs.
Simplifies list changes to share a single endpoint, which aligns it to
the behaviour of the existing sort preference endpoint.
Also added test to ensure user preferences are deleted on user delete.
This commit is contained in:
Dan Brown 2022-11-09 19:30:08 +00:00
parent 24a7e8500d
commit a3fcc98d6e
No known key found for this signature in database
GPG key ID: 46D9F943C24A2EF9
16 changed files with 89 additions and 88 deletions
resources/js/components

View file

@ -73,7 +73,7 @@ class CodeEditor {
isFavorite ? this.favourites.add(language) : this.favourites.delete(language);
button.setAttribute('data-favourite', isFavorite ? 'true' : 'false');
window.$http.patch('/settings/users/update-code-language-favourite', {
window.$http.patch('/preferences/update-code-language-favourite', {
language: language,
active: isFavorite
});