2015-03-06 12:00:10 -03:00
|
|
|
'use strict';
|
|
|
|
|
|
2015-08-08 09:30:50 -03:00
|
|
|
angular.module('copayApp.controllers').controller('wordsController',
|
|
|
|
|
function($rootScope, $scope, $timeout, profileService, go, gettext) {
|
|
|
|
|
this.getMnemonic = function() {
|
2015-03-06 12:00:10 -03:00
|
|
|
var fc = profileService.focusedClient;
|
2015-08-08 09:30:50 -03:00
|
|
|
var words = fc.getMnemonic();
|
|
|
|
|
if (!words) return;
|
|
|
|
|
return words.split(' ');
|
2015-03-06 12:00:10 -03:00
|
|
|
};
|
2015-08-08 10:10:44 -03:00
|
|
|
|
|
|
|
|
this.done = function() {
|
|
|
|
|
$rootScope.$emit('Local/BackupDone');
|
|
|
|
|
};
|
2015-03-06 12:00:10 -03:00
|
|
|
});
|