add analytics toggling
This commit is contained in:
parent
ef129b7595
commit
ae43bbe008
|
@ -25,11 +25,12 @@
|
|||
|
||||
let loading = false
|
||||
|
||||
let company = $organisation?.company
|
||||
let logoUrl = $organisation.logoUrl
|
||||
$: company = $organisation?.company
|
||||
$: logoUrl = $organisation.logoUrl
|
||||
|
||||
async function saveConfig() {
|
||||
loading = true
|
||||
await toggleAnalytics()
|
||||
const res = await organisation.save({ ...$organisation, company })
|
||||
if (res.status === 200) {
|
||||
notifications.success("General settings saved.")
|
||||
|
@ -78,11 +79,7 @@
|
|||
<div class="fields">
|
||||
<div class="field">
|
||||
<Label>Send Analytics to Budibase</Label>
|
||||
<Toggle
|
||||
text=""
|
||||
bind:value={analyticsDisabled}
|
||||
on:change={toggleAnalytics}
|
||||
/>
|
||||
<Toggle text="" value={!analyticsDisabled} />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -74,6 +74,4 @@ for (let route of mainRoutes) {
|
|||
router.use(staticRoutes.routes())
|
||||
router.use(staticRoutes.allowedMethods())
|
||||
|
||||
router.redirect("/", "/builder")
|
||||
|
||||
module.exports = router
|
||||
|
|
Loading…
Reference in New Issue