-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMenuPage.js
More file actions
38 lines (34 loc) · 1.05 KB
/
MenuPage.js
File metadata and controls
38 lines (34 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
var Model = require("UserData");
var Observable = require("FuseJS/Observable");
var AppEvents = require("AppEvent");
// var DailyNotify = require("DailyNotify");
var isSmokingActive = Observable();
var returnToMain = function() {
depRouter.goBack();
}
function checkIsSmokingActive(args) {
if ( Model.getUserData()["smokes"].value == true ) {
isSmokingActive.value = true;
} else {
isSmokingActive.value = false;
}
}
module.exports = {
returnToMain: returnToMain,
gotoSettings: function(args) {
var data2 = {'id':0};
depRouter.push("navSettingsPage", data2)
},
gotoPushNotifications: function() {
AppEvents.logEvent('pushnotifications_click');
depRouter.push("navNotificationArchivePage")
},
isSmokingActive: isSmokingActive,
checkIsSmokingActive: checkIsSmokingActive,
gotoAvhengighetstest: function() {
AppEvents.logEvent('avhengighetstest_click');
},
gotoRoykesluttgevinster: function() {
AppEvents.logEvent('roykesluttgevinster_click');
}
};