Wallet/src/js/controllers/onboarding/backupWarning.js

17 lines
555 B
JavaScript
Raw Normal View History

2016-08-25 16:31:47 -03:00
'use strict';
2016-09-02 15:42:45 -03:00
angular.module('copayApp.controllers').controller('backupWarningController', function($scope, $state, $stateParams, $ionicPopup, profileService) {
2016-08-25 16:31:47 -03:00
2016-09-02 15:42:45 -03:00
$scope.walletId = $stateParams.walletId;
2016-08-25 16:31:47 -03:00
$scope.openPopup = function() {
var backupWarningPopup = $ionicPopup.show({
templateUrl: "views/includes/backupWarningPopup.html",
scope: $scope,
});
$scope.close = function() {
backupWarningPopup.close();
2016-09-02 15:42:45 -03:00
$state.go('onboarding.backup', {walletId: $stateParams.walletId, fromOnboarding: true});
2016-08-25 16:31:47 -03:00
};
}
});