summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2020-03-18 22:18:58 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2020-03-21 04:13:58 +0000
commit199306de52ddd5b91a09db6a090eca6d61550568 (patch)
tree07aa99abbe7f63ccd4fe3c6bd1adf750b537de28
parent1cd871449bca3f16c7f3c1fa051da7543f6ccc10 (diff)
When no name is sent in notification event use the phone number instead. Bug-AGL: SPEC-3267 Change-Id: I8c553c502dccf12169a4a650b2ca79a35ef8fdf8 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
-rw-r--r--app/Notification.qml8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/Notification.qml b/app/Notification.qml
index f283b76..ac6b360 100644
--- a/app/Notification.qml
+++ b/app/Notification.qml
@@ -37,11 +37,19 @@ Item {
}
}
Label {
+ visible: name
text: '<b>' + name + '</b>'
font.pixelSize: 42
wrapMode: Text.WordWrap
}
Label {
+ visible: name === undefined
+ text: '<b>' + number + '</b>'
+ font.pixelSize: 42
+ wrapMode: Text.WordWrap
+ }
+
+ Label {
text: message
anchors.margins: 5
anchors.left: parent.left