[gnome-shell/T29763: 233/249] payg: Properly display credit expired in tray applet
- From: Matthew Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/T29763: 233/249] payg: Properly display credit expired in tray applet
- Date: Thu, 21 May 2020 18:28:50 +0000 (UTC)
commit f6cbb2bc3b3e67080ee415e3cb7715db7fb96f85
Author: Matthew Leeds <matthew leeds endlessm com>
Date: Fri Apr 24 11:58:02 2020 -0700
payg: Properly display credit expired in tray applet
https://phabricator.endlessm.com/T25995
js/ui/status/payg.js | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/js/ui/status/payg.js b/js/ui/status/payg.js
index e1fe0713bb..3a7932998d 100644
--- a/js/ui/status/payg.js
+++ b/js/ui/status/payg.js
@@ -86,6 +86,8 @@ class PaygIndicator extends PanelMenu.SystemIndicator {
return _('Getting timeā¦');
let seconds = this._paygManager.timeRemainingSecs();
+ if (seconds == 0)
+ return _('Subscription expired');
if (seconds < 60)
return _('Less than 1 minute');
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]