From 76842e98f24bb94ad733b1d9c28afd25a5b0ab1b Mon Sep 17 00:00:00 2001 From: Anna Waldron Date: Wed, 7 Nov 2018 17:21:44 -0800 Subject: [PATCH] Issue #61 - Adding tool tip to fieldname --- ait/gui/static/css/ait/gui/Field.css | 4 ++++ ait/gui/static/index.html | 10 +++++----- ait/gui/static/js/ait/gui/Field.js | 4 +++- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/ait/gui/static/css/ait/gui/Field.css b/ait/gui/static/css/ait/gui/Field.css index 5dd020d5..be6e9b63 100644 --- a/ait/gui/static/css/ait/gui/Field.css +++ b/ait/gui/static/css/ait/gui/Field.css @@ -4,6 +4,10 @@ ait-field { cursor: pointer; } +ait-field name { + font-weight: bold; +} + ait-field[disable-tlm-popover] { cursor: default; } diff --git a/ait/gui/static/index.html b/ait/gui/static/index.html index 75ca7eab..b9a9c06d 100644 --- a/ait/gui/static/index.html +++ b/ait/gui/static/index.html @@ -103,10 +103,10 @@

1553 HS Voltages

-
Voltage_A: - Voltage_B: -
Voltage_C: - Voltage_D: +
+ +
+

@@ -129,7 +129,7 @@

1553 HS Voltages

1553 HS Currents

-
Current_A: +

diff --git a/ait/gui/static/js/ait/gui/Field.js b/ait/gui/static/js/ait/gui/Field.js index 26281c22..602ced58 100644 --- a/ait/gui/static/js/ait/gui/Field.js +++ b/ait/gui/static/js/ait/gui/Field.js @@ -164,6 +164,7 @@ const Field = // Mithril lifecycle method oninit (vnode) { this._fname = vnode.attrs.name + this._dname = vnode.attrs.display_name this._pname = vnode.attrs.packet this._raw = vnode.attrs.raw === true this._cached = { packet: null, val: null } @@ -363,7 +364,8 @@ const Field = } } - return m('ait-field', vnode.attrs, value) + return m('ait-field', vnode.attrs, [m('name', this._dname + ': '), + m('value', value)]) } }