Uname: Linux webm012.cluster130.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Software: Apache
PHP version: 8.0.30 [ PHP INFO ] PHP os: Linux
Server Ip: 145.239.37.162
Your Ip: 216.73.216.190
User: dreampi (1009562) | Group: users (100)
Safe Mode: OFF
Disable Function:
_dyuweyrj4,_dyuweyrj4r,dl

name : GroupDelete.vue
<template>
  <!-- Selected Popover Delete -->
  <transition name="slide-vertical">
    <div class="am-bottom-popover" v-show="checkGroupData.toaster">
      <transition name="fade">
        <el-button
            class="am-button-icon"
            @click="showDeleteConfirmation = !showDeleteConfirmation"
            v-show="!showDeleteConfirmation"
        >
          <img class="svg-amelia" :alt="$root.labels.delete" :src="$root.getUrl+'public/img/delete.svg'"/>
        </el-button>
      </transition>
      <transition name="slide-vertical">
        <div class="am-bottom-popover-confirmation" v-show="showDeleteConfirmation">
          <el-row type="flex" justify="start" align="middle">
            <h3>{{ confirmDeleteMessage }}</h3>
            <div class="align-left">
              <el-button size="small" @click="showDeleteConfirmation = !showDeleteConfirmation">
                {{ $root.labels.cancel }}
              </el-button>
              <el-button
                  size="small"
                  @click="deleteSelectedEntities"
                  type="primary"
                  :loading="deleteGroupLoading"
              >
                {{ $root.labels.delete }}
              </el-button>
            </div>
          </el-row>

        </div>
      </transition>
    </div>
  </transition>
</template>

<script>
  import notifyMixin from '../../../js/backend/mixins/notifyMixin'
  import checkMixin from '../../../js/backend/mixins/checkMixin'
  import deleteMixin from '../../../js/backend/mixins/deleteMixin'

  export default {

    mixins: [notifyMixin, checkMixin, deleteMixin],

    props: {
      name: null,
      entities: null,
      checkGroupData: {
        toaster: false,
        allChecked: false
      },
      confirmDeleteMessage: '',
      successMessage: {single: '', multiple: ''},
      errorMessage: {single: '', multiple: ''}
    },

    data () {
      return {
        deleteGroupLoading: false,
        showDeleteConfirmation: false
      }
    },

    methods: {
      deleteSelectedEntities () {
        let $this = this

        this.deleteGroupLoading = true

        this.deleteEntities(
          this.entities.filter(entity => entity.checked).map(entity => entity.id),
          function () {
            $this.showDeleteConfirmation = false
            $this.deleteGroupLoading = false
            $this.$emit('groupDeleteCallback')
          },
          function (id) {},
          function (id) {}
        )
      }

    }
  }
</script>
© 2026 GrazzMean-Shell