From f7c05d063137b5a8467989237888c71e0e8456be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Mon, 17 May 2021 10:10:51 +0200 Subject: [PATCH] wip: roles fetch --- .../builder/portal/manage/users/[userId].svelte | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/pages/builder/portal/manage/users/[userId].svelte b/packages/builder/src/pages/builder/portal/manage/users/[userId].svelte index 58c29f1316..9f8c0239f4 100644 --- a/packages/builder/src/pages/builder/portal/manage/users/[userId].svelte +++ b/packages/builder/src/pages/builder/portal/manage/users/[userId].svelte @@ -33,6 +33,13 @@ let selectedApp const request = fetchData(`/api/admin/users/${userId}`) + const roles = fetchData( + `/api/admin/roles/app_5a72d9b923504765852338e614a72c85` + ) + + $: console.log($apps) + + $: console.log($roles) async function deleteUser() { const res = await users.del(userId) @@ -62,8 +69,10 @@ Lorem ipsum dolor sit amet consectetur adipisicing elit. Debitis porro ut nesciunt ipsam perspiciatis aliquam et hic minus alias beatae. Odit - veritatis quos quas laborum magnam tenetur perspiciatis ex hic. + veritatis quos quas laborum magnam tenetur perspiciatis ex hic. + + {JSON.stringify($roles.data, null, 2)} +