<template>
  <div>
    <q-file
      v-model="files"
      :label="$t('userTask.chooseFiles')"
      filled
      :error="error"
      :error-message="errorMessage"
      counter
      multiple
      @input="$emit('validateFiles', files)"
      :disable="loading"
    />
    <q-btn
      :disable="!files.length"
      color="primary"
      :label="$t('userTask.send')"
      :loading="loading"
      @click="sendFiles"
    />
  </div>
</template>

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