|
193 | 193 | <b-form-group id="fieldset-9" v-if="this.isPermitted(this.PERMISSIONS.VULNERABILITY_ANALYSIS)" :label="this.$t('message.analysis')" label-for="input-9"> |
194 | 194 | <b-input-group id="input-9"> |
195 | 195 | <b-form-select v-model="analysisState" :options="analysisChoices" @change="makeAnalysis" style="flex:0 1 auto; width:auto; margin-right:2rem;" v-b-tooltip.hover :title="this.$t('message.analysis_tooltip')"/> |
196 | | - <bootstrap-toggle v-model="isSuppressed" :options="{ on: 'Suppressed', off: 'Suppress', onstyle: 'warning', offstyle: 'outline-disabled'}" :disabled="false" /> |
| 196 | + <bootstrap-toggle v-model="isSuppressed" :options="{ on: 'Suppressed', off: 'Suppress', onstyle: 'warning', offstyle: 'outline-disabled'}" :disabled="analysisState === null" /> |
197 | 197 | </b-input-group> |
198 | 198 | </b-form-group> |
199 | 199 | <b-row v-if="this.isPermitted(this.PERMISSIONS.VULNERABILITY_ANALYSIS)"> |
200 | 200 | <b-col sm="6"> |
201 | 201 | <b-form-group id="fieldset-10" :label="this.$t('message.justification')" label-for="input-10"> |
202 | 202 | <b-input-group id="input-10"> |
203 | | - <b-form-select v-model="analysisJustification" :options="justificationChoices" @change="makeAnalysis" :disabled="analysisState !== 'NOT_AFFECTED'" v-b-tooltip.hover :title="$t('message.justification_tooltip')" /> |
| 203 | + <b-form-select v-model="analysisJustification" :options="justificationChoices" @change="makeAnalysis" :disabled="analysisState === null || analysisState !== 'NOT_AFFECTED'" v-b-tooltip.hover :title="$t('message.justification_tooltip')" /> |
204 | 204 | </b-input-group> |
205 | 205 | </b-form-group> |
206 | 206 | </b-col> |
207 | 207 | <b-col sm="6"> |
208 | 208 | <b-form-group id="fieldset-11" :label="this.$t('message.response')" label-for="input-11"> |
209 | 209 | <b-input-group id="input-11"> |
210 | | - <b-form-select v-model="analysisResponse" :options="responseChoices" @change="makeAnalysis" v-b-tooltip.hover :title="this.$t('message.response_tooltip')" /> |
| 210 | + <b-form-select v-model="analysisResponse" :options="responseChoices" :disabled="analysisState === null" @change="makeAnalysis" v-b-tooltip.hover :title="this.$t('message.response_tooltip')" /> |
211 | 211 | </b-input-group> |
212 | 212 | </b-form-group> |
213 | 213 | </b-col> |
214 | 214 | </b-row> |
215 | 215 | <b-form-group id="fieldset-12" v-if="this.isPermitted(this.PERMISSIONS.VIEW_VULNERABILITY)" :label="this.$t('message.details')" label-for="analysisDetailsField"> |
216 | | - <b-form-textarea id="analysisDetailsField" v-model="analysisDetails" rows="7" class="form-control" :disabled="!this.isPermitted(this.PERMISSIONS.VULNERABILITY_ANALYSIS)" v-b-tooltip.hover :title="this.$t('message.analysis_details_tooltip')" /> |
| 216 | + <b-form-textarea id="analysisDetailsField" v-model="analysisDetails" rows="7" class="form-control" :disabled="analysisState === null || !this.isPermitted(this.PERMISSIONS.VULNERABILITY_ANALYSIS)" v-b-tooltip.hover :title="this.$t('message.analysis_details_tooltip')" /> |
217 | 217 | <div class="pull-right"> |
218 | | - <b-button v-if="this.isPermitted(this.PERMISSIONS.VULNERABILITY_ANALYSIS)" size="sm" variant="outline-primary" @click="makeAnalysis"><span class="fa fa-comment-o"></span> Update Details</b-button> |
| 218 | + <b-button v-if="this.isPermitted(this.PERMISSIONS.VULNERABILITY_ANALYSIS)" :disabled="analysisState === null" size="sm" variant="outline-primary" @click="makeAnalysis"><span class="fa fa-comment-o"></span> Update Details</b-button> |
219 | 219 | </div> |
220 | 220 | </b-form-group> |
221 | 221 | </b-col> |
|
0 commit comments