rename files

This commit is contained in:
Gabriel Bazán 2016-11-11 17:05:06 -03:00
parent 0a76b3d66c
commit 39ce7af64d
13 changed files with 28 additions and 28 deletions

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
angular.module('copayApp.controllers').controller('thanksController', function($scope, $stateParams, $timeout, $log, platformInfo, configService, storageService) { angular.module('copayApp.controllers').controller('completeController', function($scope, $stateParams, $timeout, $log, platformInfo, configService, storageService) {
$scope.score = parseInt($stateParams.score); $scope.score = parseInt($stateParams.score);
$scope.skipped = $stateParams.skipped == 'false' ? false : true; $scope.skipped = $stateParams.skipped == 'false' ? false : true;
$scope.isCordova = platformInfo.isCordova; $scope.isCordova = platformInfo.isCordova;

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
angular.module('copayApp.controllers').controller('rateAppStoreController', function($scope, $state, $stateParams, externalLinkService, configService, gettextCatalog, platformInfo) { angular.module('copayApp.controllers').controller('rateAppController', function($scope, $state, $stateParams, externalLinkService, configService, gettextCatalog, platformInfo) {
$scope.score = parseInt($stateParams.score); $scope.score = parseInt($stateParams.score);
var isAndroid = platformInfo.isAndroid; var isAndroid = platformInfo.isAndroid;
var isIOS = platformInfo.isIOS; var isIOS = platformInfo.isIOS;
@ -8,14 +8,14 @@ angular.module('copayApp.controllers').controller('rateAppStoreController', func
var config = configService.getSync(); var config = configService.getSync();
$scope.skip = function() { $scope.skip = function() {
$state.go('feedback.thanks', { $state.go('feedback.complete', {
score: $scope.score, score: $scope.score,
skipped: true skipped: true
}); });
}; };
$scope.sendFeedback = function() { $scope.sendFeedback = function() {
$state.go('feedback.sendFeedback', { $state.go('feedback.send', {
score: $scope.score score: $scope.score
}); });
}; };

View File

@ -10,11 +10,11 @@ angular.module('copayApp.controllers').controller('rateCardController', function
$scope.rateModal.remove(); $scope.rateModal.remove();
} }
if ($scope.isCordova && $scope.score == 5) { if ($scope.isCordova && $scope.score == 5) {
$state.go('feedback.rateAppStore', { $state.go('feedback.rateApp', {
score: $scope.score score: $scope.score
}); });
} else { } else {
$state.go('feedback.sendFeedback', { $state.go('feedback.send', {
score: $scope.score score: $scope.score
}); });
} }

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
angular.module('copayApp.controllers').controller('sendFeedbackController', function($scope, $state, $log, $stateParams, gettextCatalog, popupService, configService, lodash, feedbackService, ongoingProcess) { angular.module('copayApp.controllers').controller('sendController', function($scope, $state, $log, $stateParams, gettextCatalog, popupService, configService, lodash, feedbackService, ongoingProcess) {
$scope.score = parseInt($stateParams.score); $scope.score = parseInt($stateParams.score);
switch ($scope.score) { switch ($scope.score) {
case 1: case 1:
@ -42,7 +42,7 @@ angular.module('copayApp.controllers').controller('sendFeedbackController', func
popupService.showAlert(gettextCatalog.getString('Error'), gettextCatalog.getString('Could not send feedback')); popupService.showAlert(gettextCatalog.getString('Error'), gettextCatalog.getString('Could not send feedback'));
return; return;
} }
$state.go('feedback.thanks', { $state.go('feedback.complete', {
score: $stateParams.score, score: $stateParams.score,
skipped: skip skipped: skip
}); });

View File

@ -42,7 +42,7 @@ angular.module('copayApp.controllers').controller('tabHomeController',
initFeedBackInfo(); initFeedBackInfo();
} else { } else {
var feedbackInfo = JSON.parse(info); var feedbackInfo = JSON.parse(info);
//la version de ahora es mayor que la guardada ? //Check if current version is greater than saved version
var currentVersion = window.version; var currentVersion = window.version;
var savedVersion = feedbackInfo.version; var savedVersion = feedbackInfo.version;
var isVersionUpdated = feedbackService.isVersionUpdated(currentVersion, savedVersion); var isVersionUpdated = feedbackService.isVersionUpdated(currentVersion, savedVersion);

View File

@ -731,30 +731,30 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
abstract: true, abstract: true,
template: '<ion-nav-view name="feedback"></ion-nav-view>' template: '<ion-nav-view name="feedback"></ion-nav-view>'
}) })
.state('feedback.sendFeedback', { .state('feedback.send', {
url: '/sendFeedback/:score', url: '/send/:score',
views: { views: {
'feedback': { 'feedback': {
controller: 'sendFeedbackController', controller: 'sendController',
templateUrl: 'views/feedback/sendFeedback.html' templateUrl: 'views/feedback/send.html'
} }
} }
}) })
.state('feedback.thanks', { .state('feedback.complete', {
url: '/thanks/:score/:skipped', url: '/complete/:score/:skipped',
views: { views: {
'feedback': { 'feedback': {
controller: 'thanksController', controller: 'completeController',
templateUrl: 'views/feedback/thanks.html' templateUrl: 'views/feedback/complete.html'
} }
} }
}) })
.state('feedback.rateAppStore', { .state('feedback.rateApp', {
url: '/rateAppStore/:score', url: '/rateApp/:score',
views: { views: {
'feedback': { 'feedback': {
controller: 'rateAppStoreController', controller: 'rateAppController',
templateUrl: 'views/feedback/rateAppStore.html' templateUrl: 'views/feedback/rateApp.html'
} }
} }
}) })

View File

@ -1,4 +1,4 @@
#thanks-feedback { #complete {
background-color: #ffffff; background-color: #ffffff;
.item-heading { .item-heading {
border-style: none; border-style: none;

View File

@ -1,4 +1,4 @@
#rate-app-store { #rate-app {
background-color: #ffffff; background-color: #ffffff;
.skip { .skip {
margin: 10px; margin: 10px;

View File

@ -18,9 +18,9 @@
@import "zero-state"; @import "zero-state";
@import "onboarding/onboarding"; @import "onboarding/onboarding";
@import "feedback/rateCard"; @import "feedback/rateCard";
@import "feedback/sendFeedback"; @import "feedback/send";
@import "feedback/thanks"; @import "feedback/complete";
@import "feedback/rateAppStore"; @import "feedback/rateApp";
@import "includes/actionSheet"; @import "includes/actionSheet";
@import "export"; @import "export";
@import "import"; @import "import";

View File

@ -1,4 +1,4 @@
<ion-view id="thanks-feedback"> <ion-view id="complete">
<ion-content scroll="false"> <ion-content scroll="false">
<div class="item item-icon-right item-heading"> <div class="item item-icon-right item-heading">
<a ui-sref="tabs.home"><i class="icon ion-ios-close-empty close-home-tip"></i></a> <a ui-sref="tabs.home"><i class="icon ion-ios-close-empty close-home-tip"></i></a>

View File

@ -1,4 +1,4 @@
<ion-view id="rate-app-store"> <ion-view id="rate-app">
<ion-content scroll="false"> <ion-content scroll="false">
<a class="right skip" ng-click="skip()">Skip</a> <a class="right skip" ng-click="skip()">Skip</a>
<div class="title"> <div class="title">