[gnome-shell] NetworkMenu/NMConnectionDevice: fix status text
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] NetworkMenu/NMConnectionDevice: fix status text
- Date: Wed, 9 Oct 2013 16:40:43 +0000 (UTC)
commit c79bdd9029c5b01c06fa3e3430fc8ad3bfdf73aa
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Thu Oct 3 14:26:21 2013 +0200
NetworkMenu/NMConnectionDevice: fix status text
Be consistent with v4 mockups
https://bugzilla.gnome.org/show_bug.cgi?id=709043
js/ui/status/network.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index 78e44f3..c81e94c 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -367,8 +367,9 @@ const NMConnectionDevice = new Lang.Class({
switch(this._device.state) {
case NetworkManager.DeviceState.DISCONNECTED:
+ return _("Off");
case NetworkManager.DeviceState.ACTIVATED:
- return '';
+ return this.parent();
case NetworkManager.DeviceState.UNMANAGED:
/* Translators: this is for network devices that are physically present but are not
under NetworkManager's control (and thus cannot be used in the menu) */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]