feat: missing events

This commit is contained in:
Arman
2024-07-03 14:02:30 +02:00
parent 279582264b
commit 5c5e5c562a
4 changed files with 12 additions and 1 deletions
@@ -131,6 +131,7 @@
</DropListItem>
<DropListItem
icon="trash"
event="execution_delete"
on:click={() => {
selectedExecution = execution;
showDropdown = [];
@@ -20,6 +20,7 @@
import { invalidate } from '$app/navigation';
import { Alert, Heading } from '$lib/components';
import { Button } from '$lib/elements/forms';
import { trackEvent } from '$lib/actions/analytics';
export let data;
let showAlert = true;
@@ -59,6 +60,12 @@
>.
<svelte:fragment slot="buttons">
<Button
on:click={() =>
trackEvent('click_open_website', {
from: 'button',
source: 'function_keys_card',
destination: 'docs'
})}
href="https://appwrite.io/docs/products/functions/development"
external
text>
@@ -50,7 +50,9 @@
type: 'success',
message: 'Function scopes have been updated'
});
trackEvent(Submit.FunctionUpdateScopes);
trackEvent(Submit.FunctionUpdateScopes, {
scopes: functionScopes
});
} catch (error) {
addNotification({
type: 'error',
@@ -142,6 +142,7 @@
{#if deployment.status === 'processing'}
<DropListItem
icon="x-circle"
event="deployment_cancel"
on:click={() => {
selectedDeployment = deployment;
showDropdown = [];