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';
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.skipped = $stateParams.skipped == 'false' ? false : true;
$scope.isCordova = platformInfo.isCordova;

View File

@ -1,6 +1,6 @@
'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);
var isAndroid = platformInfo.isAndroid;
var isIOS = platformInfo.isIOS;
@ -8,14 +8,14 @@ angular.module('copayApp.controllers').controller('rateAppStoreController', func
var config = configService.getSync();
$scope.skip = function() {
$state.go('feedback.thanks', {
$state.go('feedback.complete', {
score: $scope.score,
skipped: true
});
};
$scope.sendFeedback = function() {
$state.go('feedback.sendFeedback', {
$state.go('feedback.send', {
score: $scope.score
});
};

View File

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

View File

@ -1,6 +1,6 @@
'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);
switch ($scope.score) {
case 1:
@ -42,7 +42,7 @@ angular.module('copayApp.controllers').controller('sendFeedbackController', func
popupService.showAlert(gettextCatalog.getString('Error'), gettextCatalog.getString('Could not send feedback'));
return;
}
$state.go('feedback.thanks', {
$state.go('feedback.complete', {
score: $stateParams.score,
skipped: skip
});

View File

@ -42,7 +42,7 @@ angular.module('copayApp.controllers').controller('tabHomeController',
initFeedBackInfo();
} else {
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 savedVersion = feedbackInfo.version;
var isVersionUpdated = feedbackService.isVersionUpdated(currentVersion, savedVersion);

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
<ion-view id="thanks-feedback">
<ion-view id="complete">
<ion-content scroll="false">
<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>

View File

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