ui: clearer magnet/vibration status labels
- Magnet mode: 'No magnet nearby' / 'Magnet detected' (was None/Detected!) - Vibration mode: 'No vibration' / 'Vibration detected' (was Idle/Vibration!) Door mode stays as Closed/Opened/Opening/Closing since that matches how users think about doors specifically.
This commit is contained in:
@@ -195,8 +195,8 @@ const HUMAN = {
|
|||||||
closed: 'Closed', opened: 'Opened',
|
closed: 'Closed', opened: 'Opened',
|
||||||
opening_alert: 'Opening', closing_alert: 'Closing',
|
opening_alert: 'Opening', closing_alert: 'Closing',
|
||||||
},
|
},
|
||||||
vibration_status: { no_vibration: 'Idle', vibration_detected: 'Vibration!' },
|
vibration_status: { no_vibration: 'No vibration', vibration_detected: 'Vibration detected' },
|
||||||
magnet_status: { no_magnet: 'None', magnet_detected: 'Detected!' },
|
magnet_status: { no_magnet: 'No magnet nearby', magnet_detected: 'Magnet detected' },
|
||||||
};
|
};
|
||||||
|
|
||||||
function humanize(field, value) {
|
function humanize(field, value) {
|
||||||
|
|||||||
Reference in New Issue
Block a user