<template>
    <form @submit.prevent="update">
        <div class="form-group row">
          <div class="col-md-12">
            <label for="name">Reason</label>
                <textarea class="form-control" name="reason" v-model="fields.reason" placeholder="Type reason for disabling..."></textarea>
            <div v-if="errors && errors.reason" class="text-danger">{{ errors.reason[0] }}</div>
          </div>
	
         </div>
     
        <div class="form-group">
            <button type="submit" class="btn btn-danger pull-right"><i class="fas fa-ban"></i> Disable</button>
            <button type="reset" class="btn btn-danger btn-round">Clear</button>
        </div>       
     
    </form>
</template>

<script>
import FormMixin from '../shared/FormMixin';

export default {
  mixins: [ FormMixin ],
   props: ['request'],
        
  data() {
    return {
      'text': 'IVR Request disabled succesfully',
      'redirect': '',
      action2: '/fc/ivr-reject',
      fields:{
        id:this.request,
      }
    }
  },
  mounted() {
              this.fields.id=this.request;
        }
    }
</script>