Browse Source

feat: change data sources show/hide checkbox to switch

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/3573/head
mertmit 2 years ago
parent
commit
8f74d5ae3d
  1. 10
      packages/nc-gui/components/dashboard/settings/DataSources.vue

10
packages/nc-gui/components/dashboard/settings/DataSources.vue

@ -280,10 +280,7 @@ watch(
<template v-if="sources[0].enabled">Hide in UI</template>
<template v-else>Show in UI</template>
</template>
<a-checkbox
:checked="sources[0].enabled ? true : false"
@change="toggleBase(sources[0], $event.target?.checked)"
></a-checkbox>
<a-switch :checked="sources[0].enabled ? true : false" @change="toggleBase(sources[0], $event)" />
</a-tooltip>
</div>
</div>
@ -355,10 +352,7 @@ watch(
<template v-if="base.enabled">Hide in UI</template>
<template v-else>Show in UI</template>
</template>
<a-checkbox
:checked="base.enabled ? true : false"
@change="toggleBase(base, $event.target?.checked)"
></a-checkbox>
<a-switch :checked="base.enabled ? true : false" @change="toggleBase(base, $event)" />
</a-tooltip>
</div>
</div>

Loading…
Cancel
Save