address comments.

This commit is contained in:
Darshan
2025-05-28 14:29:35 +05:30
parent 1a7caf1398
commit d5dcd10dee
2 changed files with 11 additions and 13 deletions
@@ -1,12 +1,13 @@
<script lang="ts" context="module">
import { get } from 'svelte/store';
import { page } from '$app/state';
import { base } from '$app/paths';
import { goto } from '$app/navigation';
let showDelete = writable(false);
export const promptDeleteUser = (id: string) => {
showDelete.set(true);
const p = get(project);
goto(`${base}/project-${p.region}-${p.$id}/auth/user-${id}`);
goto(`${base}/project-${page.params.region}-${page.params.project}/auth/user-${id}`);
};
</script>
@@ -16,10 +17,7 @@
import { writable } from 'svelte/store';
import DeleteUser from './deleteUser.svelte';
import { user } from './store';
import { goto } from '$app/navigation';
import { project } from '../../store';
import { toLocaleDate } from '$lib/helpers/date';
import { base } from '$app/paths';
$: accessedAt = ($user as unknown as { accessedAt: string }).accessedAt;
</script>
@@ -1,25 +1,25 @@
<script lang="ts" context="module">
import { get } from 'svelte/store';
import { page } from '$app/state';
import { base } from '$app/paths';
import { goto } from '$app/navigation';
import { writable } from 'svelte/store';
let showDelete = writable(false);
export const promptDeleteProvider = (id: string) => {
showDelete.set(true);
const p = get(project);
goto(`${base}/project-${p.region}-${p.$id}/messaging/providers/provider-${id}`);
goto(
`${base}/project-${page.params.region}-${page.params.$id}/messaging/providers/provider-${id}`
);
};
</script>
<script lang="ts">
import { CardGrid, BoxAvatar } from '$lib/components';
import { Button } from '$lib/elements/forms';
import { writable } from 'svelte/store';
import { provider } from './store';
import { goto } from '$app/navigation';
import { toLocaleDateTime } from '$lib/helpers/date';
import { project } from '$routes/(console)/project-[region]-[project]/store';
import DeleteProvider from './deleteProvider.svelte';
import { base } from '$app/paths';
</script>
<CardGrid>