# plugin-detective/1.1.4/troubleshoot/app/src/components/Interrogating.vue

Plugin Detective – Troubleshooting Conflicts, version 1.1.4. 92 lines.

- Page: https://pluginprobe.com/plugins/plugin-detective/1.1.4/code/troubleshoot/app/src/components/Interrogating.vue
- Raw: https://pluginprobe.com/plugins/plugin-detective/1.1.4/raw/troubleshoot/app/src/components/Interrogating.vue
- Modified: 2018-07-31T23:41:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/plugin-detective/1.1.4/code/troubleshoot/app/src/components/Interrogating.vue#L10-L20`.

```vue
<template>
  <div class="interrogating">
    <img :src="updatedApi.static_url + '/light.svg'" alt="Interrogation Room Light" class="light">

    <div>
      <counter-box
        v-if="activeCase.suspects_under_interrogation.length"
        :title="translations.interrogation.interrogatingTitle"
        :loading="loading"
        :loadingmsg="translations.interrogation.checking"
        :count="interrogatingCount"
        :avatars="activeCase.suspects_under_interrogation"
        display="centered"
      ></counter-box>
      <counter-box
        v-else
        :title="translations.interrogation.interrogatingTitle"
        :loading="loading"
        :loadingmsg="translations.interrogation.checking"
        :count="remainingCount"
        :avatars="holdingCell"
        display="centered"
      ></counter-box>
      <div class="continue">
        <router-link to="/test" tag="md-button" class="md-raised md-accent">
          {{translations.interrogation.startButton}}
          <md-icon>play_arrow</md-icon>
        </router-link>
      </div>
    </div>

    <div class="more-suspects" v-if="activeCase.suspects_under_interrogation.length">
      <counter-box
        :title="translations.interrogation.holdingTitle"
        :loading="loading"
        :count="remainingCount"
        :avatars="holdingCell"
      ></counter-box>
      <counter-box
        :title="translations.interrogation.clearedTitle"
        :loading="loading"
        :count="clearedCount"
        :avatars="activeCase.cleared_suspects"
      ></counter-box>
    </div>
  </div>
</template>

<script>
import store from '@/store'
import { mapState, mapActions, mapGetters } from 'vuex'
import Loading from './Loading'
import PluginAvatar from './PluginAvatar'
import CounterBox from './CounterBox'

export default {
  name: 'interrogating',
  store,
  components: { Loading, PluginAvatar, CounterBox },
  data () {
    return {
      loading: true
    }
  },
  beforeMount () {
    this.interrogation()
      .then(() => {
        this.loading = false
      })
  },
  computed: {
    ...mapState([
      'api',
      'activeCase',
      'translations'
    ]),
    ...mapGetters([
      'interrogatingCount',
      'clearedCount',
      'remainingCount',
      'notHolding',
      'holdingCell',
      'updatedApi'
    ])
  },
  methods: {
    ...mapActions([
      'interrogation'
    ])
  }
}
</script>
```
