Skip to content

Commit

Permalink
Add argument units in popover
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Aug 3, 2022
1 parent 05b379a commit 534da81
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ait/gui/static/js/ait/gui/Command.js
Original file line number Diff line number Diff line change
Expand Up @@ -757,11 +757,14 @@ const CommandConfigure = {
`0x${sprintf(`%0${hex_padding}X`, argument.mask)}`) : (
"None")

let units = argument.units ? argument.units : "None"

let popover_content = `
<p><b>Description:</b> ${desc}</p>
<p><b>Data Type:</b> ${type}</p>
<p><b>Byte(s) in Packet:</b> ${bytes}</p>
<p><b>Bit Mask:</b> ${mask}</p>
<p><b>Units:</b> ${units}</p>
`

if (argument.enum) {
Expand Down

0 comments on commit 534da81

Please sign in to comment.