Removes unused files
This commit is contained in:
parent
4fcc058049
commit
e519517167
3 changed files with 0 additions and 78 deletions
|
|
@ -1,34 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.services').service('addonManager', function (lodash) {
|
||||
var addons = [];
|
||||
|
||||
this.registerAddon = function (addonSpec) {
|
||||
addons.push(addonSpec);
|
||||
};
|
||||
|
||||
this.addonMenuItems = function () {
|
||||
return lodash.map(addons, function (addonSpec) {
|
||||
return addonSpec.menuItem;
|
||||
});
|
||||
};
|
||||
|
||||
this.addonViews = function () {
|
||||
return lodash.map(addons, function (addonSpec) {
|
||||
return addonSpec.view;
|
||||
});
|
||||
};
|
||||
|
||||
this.formatPendingTxp = function (txp) {
|
||||
lodash.each(addons, function (addon) {
|
||||
if (addon.formatPendingTxp) {
|
||||
addon.formatPendingTxp(txp);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
this.txTemplateUrl = function() {
|
||||
var addon = lodash.find(addons, 'txTemplateUrl');
|
||||
return addon ? addon.txTemplateUrl() : null;
|
||||
}
|
||||
});
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
'use strict';
|
||||
'use strict';
|
||||
angular.module('copayApp.services')
|
||||
.factory('addressService', function(storageService, profileService, $log, $timeout, lodash, bwcError, gettextCatalog) {
|
||||
var root = {};
|
||||
return root;
|
||||
});
|
||||
|
|
@ -1,37 +0,0 @@
|
|||
|
||||
'use strict';
|
||||
|
||||
angular.module('copayApp.services').factory('confirmDialog', function($log, $timeout, profileService, configService, gettextCatalog, platformInfo) {
|
||||
var root = {};
|
||||
|
||||
|
||||
var acceptMsg = gettextCatalog.getString('Accept');
|
||||
var cancelMsg = gettextCatalog.getString('Cancel');
|
||||
var confirmMsg = gettextCatalog.getString('Confirm');
|
||||
|
||||
root.show = function(msg, cb) {
|
||||
if (platformInfo.isCordova) {
|
||||
navigator.notification.confirm(
|
||||
msg,
|
||||
function(buttonIndex) {
|
||||
if (buttonIndex == 1) {
|
||||
$timeout(function() {
|
||||
return cb(true);
|
||||
}, 1);
|
||||
} else {
|
||||
return cb(false);
|
||||
}
|
||||
},
|
||||
confirmMsg, [acceptMsg, cancelMsg]
|
||||
);
|
||||
} else if (platformInfo.isChromeApp) {
|
||||
// No feedback, alert/confirm not supported.
|
||||
return cb(true);
|
||||
} else {
|
||||
return cb(confirm(msg));
|
||||
}
|
||||
};
|
||||
|
||||
return root;
|
||||
});
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue