diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-07-06 19:54:16 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-07-06 19:54:16 +0530 |
commit | 7f01a041d863d75d8729ff65b709c814d7a6a125 (patch) | |
tree | 6d4d02d70f730494d0a5d448309eb15ea9d559f6 /ui/status.go | |
parent | fa65491a5f6f8edb817e534d3373495f18e325d4 (diff) |
Bug Fix: when updating status it shows previous status and current status in the wrong order
Diffstat (limited to 'ui/status.go')
-rw-r--r-- | ui/status.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/status.go b/ui/status.go index f5425b4..09bce25 100644 --- a/ui/status.go +++ b/ui/status.go @@ -79,7 +79,7 @@ func FormatStatus(status string) string { // very short name I know func CreateStatusUpdateConfirmationMessage(title, status, prevStatus string) string { if prevStatus != "" { - return fmt.Sprintf("\x1b[35m%s\x1b[0m Status :: %s%s\x1b[0m -> %s%s\x1b[0m", title, GetColorCodeByStatus(status), FormatStatus(status), GetColorCodeByStatus(prevStatus), FormatStatus(prevStatus)) + return fmt.Sprintf("\x1b[35m%s\x1b[0m Status :: %s%s\x1b[0m -> %s%s\x1b[0m", title, GetColorCodeByStatus(prevStatus), FormatStatus(prevStatus), GetColorCodeByStatus(status), FormatStatus(status)) } return "\x1b[35m" + title + "\x1b[0m Status :: " + GetColorCodeByStatus(status) + FormatStatus(status) + "\x1b[0m" } |