<template>
  <span
    >{{
      setmeta({
        title: 'Impostazioni',
        description: '',
        keywords: '',
      })
    }}
  </span>

  <div>
    <div class="q-ma-sm q-gutter-sm q-pa-xs">
      <div v-if="mysite">
      <q-toggle
        v-model="globalStore.editOn"
        color="green"
        icon="fas fa-pencil-alt"
        dense
      >
      </q-toggle>

        <CTitleBanner title="Impostazioni"></CTitleBanner>
        <CMyFieldDb
          title="Attiva PreOrdini"
          table="sites"
          mykey="ecomm"
          mysubkey="enablePreOrders"
          :id="mysite._id"
          :rec="mysite"
          :type="costanti.FieldType.boolean"
        >
        </CMyFieldDb>
        <CMyFieldDb
          title="Note Extra sul Carrello"
          table="sites"
          mykey="ecomm"
          mysubkey="NoteExtraOnCart"
          :id="mysite._id"
          :rec="mysite"
          :type="costanti.FieldType.string"
        >
        </CMyFieldDb>
      </div>
    </div>
  </div>
</template>
<script lang="ts" src="./settings.ts">
</script>
<style lang="scss" scoped>
  @import 'settings.scss';
</style>
