Browse Source

fix: use checkbox instead of icons

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

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

@ -256,16 +256,10 @@ watch(
<template v-if="sources[0].enabled">Hide in UI</template>
<template v-else>Show in UI</template>
</template>
<MdiEyeSettings
v-if="sources[0].enabled"
class="text-lg text-primary outline-0"
@click="toggleBase(sources[0], false)"
></MdiEyeSettings>
<MdiEyeSettingsOutline
v-else
class="text-lg text-red-500 outline-0"
@click="toggleBase(sources[0], true)"
></MdiEyeSettingsOutline>
<a-checkbox
:checked="sources[0].enabled ? true : false"
@change="toggleBase(sources[0], $event.target?.checked)"
></a-checkbox>
</a-tooltip>
</div>
</div>
@ -337,16 +331,10 @@ watch(
<template v-if="base.enabled">Hide in UI</template>
<template v-else>Show in UI</template>
</template>
<MdiEyeSettings
v-if="base.enabled"
class="text-lg text-primary outline-0"
@click="toggleBase(base, false)"
></MdiEyeSettings>
<MdiEyeSettingsOutline
v-else
class="text-lg text-red-500 outline-0"
@click="toggleBase(base, true)"
></MdiEyeSettingsOutline>
<a-checkbox
:checked="base.enabled ? true : false"
@change="toggleBase(base, $event.target?.checked)"
></a-checkbox>
</a-tooltip>
</div>
</div>

Loading…
Cancel
Save