<template>
  <div class="q-my-sm">
    <div v-if="tools.isLogged()">
      <CNotifAtTop />
      <!--<q-banner
      rounded
      dense
      class="bg-warning text-white"
      color="primary q-title"
      style="text-align: center;">
      <template v-slot:avatar>
        <q-icon name="fas fa-exclamation-triangle" color="yellow" size="xs" />
      </template>
      <span class="mybanner">Questa sezione è ancora in fase di miglioramento.</span>

      </q-banner>-->

      <CMyGroups v-model="filter" :finder="true">
        <CFinder
          :ind="tools.getIndMainCardsByTable(shared_consts.TABLES_MYGROUPS)"
          :table="shared_consts.TABLES_MYGROUPS"
          :showFilterPersonal="true"
          :showBarSelection="false"
          :labelBtnAddExtra="`Aggiungi ` + $t('mypages.group')"
        />

        <!--
      <CGridTableRec
        prop_mytable="mygroups"
        prop_mytitle=""
        :prop_mycolumns="colmyUserGroup"
        prop_colkey="_id"
        col_title="groupname"
        :vertical="costanti.VISUTABLE_SCHEDA_GROUP"
        nodataLabel=" Nessun Gruppo"
        :prop_search="true"
        hint="nome del gruppo da trovare"
        :finder="true"
        :choose_visutype="true"
        :finder_noNull="false"
        :options="shared_consts.OPTIONS_SEARCH_USER_ALL_WORDS"
        :butt_modif_new="true"
        noresultLabel="nome del gruppo non trovato"
        :arrfilters="arrfilterand"
        :filtercustom="filtercustom"
        :prop_searchList="searchList"
        :showType="costanti.SHOW_GROUPINFO"
        :showCol="false"
        :defaultnewrec="getdefaultnewrec()"
        :extraparams="extraparams()">

      </CGridTableRec>
        -->
      </CMyGroups>

      <div v-if="filter === costanti.CREATE_GROUP">Nuovo Gruppo:</div>
    </div>
    <div v-else>
      <CCheckIfIsLogged></CCheckIfIsLogged>
    </div>
  </div>
</template>

<script lang="ts" src="./mygroups.ts">
</script>

<style lang="scss" scoped>
@import "./mygroups.scss";
</style>

