Advanced Reset Options -cryptk
[webos-internals:modifications.git] / notifications / notifications-advanced-reset-options.patch
1 diff --git a/usr/lib/luna/system/luna-systemui/app/PowerdAlerts/PowerdAlerts.js b/usr/lib/luna/system/luna-systemui/app/PowerdAlerts/PowerdAlerts.js
2 index 07a5f24..db55a14 100644
3 --- a/usr/lib/luna/system/luna-systemui/app/PowerdAlerts/PowerdAlerts.js
4 +++ b/usr/lib/luna/system/luna-systemui/app/PowerdAlerts/PowerdAlerts.js
5 @@ -62,9 +62,17 @@ enyo.kind({
6                                    {name:"infoIcon", className:"info-icon", onclick: "showInfo"}
7                                 ]
8                  },
9 -                {kind: "NotificationButton", className: "enyo-notification-button-negative", layoutKind:"HFlexLayout", pack:"center",  onclick:"poweroff", components:[{content: $L("Shut Down")}]},
10 -                {kind: "NotificationButton", className: "enyo-notification-button", layoutKind:"HFlexLayout", pack:"center", onclick:"closeAlert", components:[{content: $L("Cancel")}]},
11 +                {kind: "HFlexBox", components: [
12 +                       {kind: "NotificationButton", className: "enyo-notification-button-alternate", flex: 1, onclick:"lunarestart", components:[{content: $L("Luna Restart")}]},
13 +                       {kind: "NotificationButton", className: "enyo-notification-button-alternate", flex: 1, onclick:"devicerestart", components:[{content: $L("Device Restart")}]},
14 +                ]},
15 +                {kind: "HFlexBox", components: [
16 +                       {kind: "NotificationButton", className: "enyo-notification-button-negative", flex: 1,  onclick:"poweroff", components:[{content: $L("Shut Down")}]},
17 +                       {kind: "NotificationButton", className: "enyo-notification-button", flex: 1, onclick:"closeAlert", components:[{content: $L("Cancel")}]},
18 +                ]},
19                  {kind:"PalmService", name:"launchHelp", service:"palm://com.palm.applicationManager/", method:"open"},
20 +                {kind: "PalmService", name:"sysToolsMgr", service:"palm://ca.canucksoftware.systoolsmgr"},
21 +                {kind: "PalmService", name:"reboot", service:"palm://com.palm.power/shutdown/", method:"machineReboot"},
22                  {kind: "PalmService", name:"shutdown", service:"palm://com.palm.power/shutdown/", method:"machineOff"}
23         ],
24         
25 @@ -90,6 +98,18 @@ enyo.kind({
26                 close();
27         },
28         
29 +       lunarestart: function(inSender) { 
30 +               this.$.sysToolsMgr.call({}, {method: "lunaRestart"});
31 +               close();
32 +       },
33 +       
34 +       devicerestart: function(inSender) { 
35 +               this.$.reboot.call({
36 +                       reason: "Restart request by User"
37 +               });
38 +               close();
39 +       },
40 +       
41         poweroff: function(inSender) { 
42                 this.$.shutdown.call({
43                         reason: "Shutdown request by User"