From 855a45650e608ff797b5ae38a7f18fa24a474f3f Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Tue, 30 Jul 2024 18:19:55 -0700 Subject: feat(files): Support setting view config for complex ids Signed-off-by: Christopher Ng --- apps/files/src/store/viewConfig.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apps/files/src') diff --git a/apps/files/src/store/viewConfig.ts b/apps/files/src/store/viewConfig.ts index f3021077c54..4dc40ba1015 100644 --- a/apps/files/src/store/viewConfig.ts +++ b/apps/files/src/store/viewConfig.ts @@ -44,8 +44,10 @@ export const useViewConfigStore = function(...args) { * @param value */ async update(view: ViewId, key: string, value: string | number | boolean) { - axios.put(generateUrl(`/apps/files/api/v1/views/${view}/${key}`), { + axios.put(generateUrl('/apps/files/api/v1/views'), { value, + view, + key, }) emit('files:viewconfig:updated', { view, key, value }) -- cgit v1.2.3