From 570b16a81a8a03f55b2d45081f800ff5e838f768 Mon Sep 17 00:00:00 2001 From: Javier Date: Wed, 28 Sep 2016 10:42:25 -0300 Subject: [PATCH 1/4] reverse timeline --- src/js/controllers/modals/txDetails.js | 2 ++ src/js/controllers/modals/txpDetails.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/js/controllers/modals/txDetails.js b/src/js/controllers/modals/txDetails.js index f9d7dd4ff..37f6718fa 100644 --- a/src/js/controllers/modals/txDetails.js +++ b/src/js/controllers/modals/txDetails.js @@ -73,6 +73,8 @@ angular.module('copayApp.controllers').controller('txDetailsController', functio time: $scope.btx.time, description: actionDescriptions['broadcasted'], }); + + $scope.actionList.reverse(); }; $scope.showCommentPopup = function() { diff --git a/src/js/controllers/modals/txpDetails.js b/src/js/controllers/modals/txpDetails.js index 23ba059b3..8f76d7f4d 100644 --- a/src/js/controllers/modals/txpDetails.js +++ b/src/js/controllers/modals/txpDetails.js @@ -49,6 +49,8 @@ angular.module('copayApp.controllers').controller('txpDetailsController', functi by: action.copayerName }); }); + + $scope.actionList.reverse(); }; $scope.$on('accepted', function(event) { From fb117ba1ba4def62072286749ba7940319923976 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Baz=C3=A1n?= Date: Wed, 28 Sep 2016 10:50:33 -0300 Subject: [PATCH 2/4] add notifications settings --- public/views/preferencesNotifications.html | 29 +++++++++++ public/views/tab-settings.html | 24 +++------ .../controllers/preferencesNotifications.js | 52 +++++++++++++++++++ src/js/controllers/tab-settings.js | 37 +------------ src/js/routes.js | 11 +++- src/sass/views/notifications.scss | 43 +++++++++++++++ 6 files changed, 142 insertions(+), 54 deletions(-) create mode 100644 public/views/preferencesNotifications.html create mode 100644 src/js/controllers/preferencesNotifications.js create mode 100644 src/sass/views/notifications.scss diff --git a/public/views/preferencesNotifications.html b/public/views/preferencesNotifications.html new file mode 100644 index 000000000..8b54a93e2 --- /dev/null +++ b/public/views/preferencesNotifications.html @@ -0,0 +1,29 @@ + + + {{'Notifications' | translate}} + + + + + +
+
+
Notifications
+ + + Enable push notifications + +
+ +
+
Notifications
+
+ Push notifications for Copay are currently disabled. Enable them in the Settings app. +
+ + Open Settings app + +
+
+
+
diff --git a/public/views/tab-settings.html b/public/views/tab-settings.html index cb9113da9..efdff84ad 100644 --- a/public/views/tab-settings.html +++ b/public/views/tab-settings.html @@ -14,6 +14,12 @@
Preferences
+ + + Notifications + + + Language @@ -50,24 +56,6 @@ -
-
Notifications
- - - Enable push notifications - -
- -
-
Notifications
-
- Push notifications for Copay are currently disabled. Enable them in the Settings app. -
- - Open Settings app - -
-
Wallets Preferences
Date: Wed, 28 Sep 2016 11:59:42 -0300 Subject: [PATCH 3/4] switch advanced and about --- public/views/tab-settings.html | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/public/views/tab-settings.html b/public/views/tab-settings.html index efdff84ad..0231d8d99 100644 --- a/public/views/tab-settings.html +++ b/public/views/tab-settings.html @@ -71,13 +71,6 @@ -
- - - About {{appName}} - - -
Advanced @@ -85,6 +78,11 @@
+ + + About {{appName}} + + From 947a12b996f3c3fae7b16c4f0fd0b9c1146ae7fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Baz=C3=A1n?= Date: Wed, 28 Sep 2016 12:26:09 -0300 Subject: [PATCH 4/4] Save last state only for onboarding views --- src/js/routes.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/js/routes.js b/src/js/routes.js index d76a7328e..ba828213c 100644 --- a/src/js/routes.js +++ b/src/js/routes.js @@ -995,6 +995,8 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr $log.debug('Route change from:', fromState.name || '-', ' to:', toState.name); $log.debug(' toParams:' + JSON.stringify(toParams || {})); $log.debug(' fromParams:' + JSON.stringify(fromParams || {})); + + if (!toState.name.match(/onboarding/)) return; var state = {}; state.name = toState.name; state.toParams = toParams;