mirror of
https://github.com/ThisIsBenny/iOS-Widgets.git
synced 2025-06-07 05:57:41 +00:00
Fix issue with underscore in status
Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
parent
340a79107a
commit
3da3865dd0
2 changed files with 6 additions and 4 deletions
|
@ -302,9 +302,9 @@ if (!orderDetails) {
|
|||
progressStack.spacing = 3
|
||||
|
||||
if (itemStatusTracker['d']['currentStatus']) {
|
||||
const statusText = progressStack.addText(`STATUS: ${itemStatusTracker['d']['currentStatus']}`)
|
||||
const statusText = progressStack.addText(`${itemStatusTracker['d']['currentStatus'].replace(/_/g, ' ')}`)
|
||||
statusText.textColor = Color.black()
|
||||
statusText.font = Font.thinSystemFont(8)
|
||||
statusText.font = Font.regularSystemFont(8)
|
||||
}
|
||||
|
||||
progressStack.addImage(creatProgress(total, daysGone))
|
||||
|
@ -314,14 +314,14 @@ if (!orderDetails) {
|
|||
|
||||
const orderDateText = footerStack.addText(orderDate.toLocaleDateString())
|
||||
orderDateText.textColor = Color.black()
|
||||
orderDateText.font = Font.thinSystemFont(8)
|
||||
orderDateText.font = Font.regularSystemFont(8)
|
||||
orderDateText.lineLimit = 1
|
||||
|
||||
footerStack.addSpacer()
|
||||
|
||||
const deliveryDateText = footerStack.addText(deliveryDate.toLocaleDateString())
|
||||
deliveryDateText.textColor = Color.black()
|
||||
deliveryDateText.font = Font.thinSystemFont(8)
|
||||
deliveryDateText.font = Font.regularSystemFont(8)
|
||||
deliveryDateText.lineLimit = 1
|
||||
} else {
|
||||
widget.addSpacer()
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
1.0.7
|
||||
- Fix issue with underscore in status
|
||||
1.0.6
|
||||
- Show status
|
||||
1.0.5
|
||||
|
|
Loading…
Add table
Reference in a new issue