Skip to content

Commit

Permalink
Add command description to hazardous dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-pratt committed Feb 6, 2025
1 parent 48a3666 commit fcc9377
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@
</v-toolbar>
<v-card-text class="mt-6">
Warning: Command {{ hazardousCommand }} is Hazardous. Send?
<br />
<span class="openc3-yellow"> Description: {{ commandDescription }} </span>
</v-card-text>
<v-card-actions class="px-2">
<v-spacer />
Expand Down Expand Up @@ -281,6 +283,7 @@ export default {
editor: null,
targetName: '',
commandName: '',
commandDescription: '',
paramList: '',
lastTargetName: '',
lastCommandName: '',
Expand Down Expand Up @@ -617,6 +620,7 @@ export default {
}
this.screenCount += 1
}
this.commandDescription = command.description
this.sendDisabled = false
this.status = ''
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@
<v-col :cols="colSize" style="max-width: 140px"> </v-col>
</v-row>
<v-row no-gutters class="pa-3">
<v-col v-if="hazardous" :cols="colSize" class="openc3-yellow"
>Description: {{ description }} (HAZARDOUS)</v-col
>
<v-col v-else :cols="colSize">Description: {{ description }} </v-col>
<v-col :cols="colSize" :class="{ 'openc3-yellow': hazardous }">
Description: {{ description }}
<template v-if="hazardous"> (HAZARDOUS) </template>
</v-col>
</v-row>
</div>
</template>
Expand Down

0 comments on commit fcc9377

Please sign in to comment.