feat: new setup component that handles all things setup related

This commit is contained in:
Joel Jacob Stephen
2024-02-23 12:33:35 +05:30
parent 6d1e8c4eeb
commit 041eeab4d2

View File

@@ -0,0 +1,25 @@
<template>
<SetupDataSharing @onSetupComplete="dataAnalyticsSetup" />
</template>
<script setup lang="ts">
import { useRouter } from 'vue-router';
import { auth } from '~/helpers/auth';
const router = useRouter();
const dataAnalyticsSetup = async (status: boolean) => {
if (status) {
const result = await auth.updateFirstTimeInfraSetupStatus();
if (result) {
console.log('Data sharing setup complete');
router.push('/dashboard');
}
}
};
</script>
<route lang="yaml">
meta:
layout: empty
</route>