added community section and some icons
This commit is contained in:
parent
0238c9a891
commit
f15fd4a2de
7 changed files with 183 additions and 157 deletions
23
src/js/controllers/communityController.js
Normal file
23
src/js/controllers/communityController.js
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('communityController', function($scope, communityService, $ionicScrollDelegate, $timeout, platformInfo) {
|
||||
|
||||
$scope.hide = false;
|
||||
$scope.services = communityService.get();
|
||||
$scope.isCordova = platformInfo.isCordova;
|
||||
|
||||
$scope.toggle = function() {
|
||||
$scope.hide = !$scope.hide;
|
||||
$timeout(function() {
|
||||
$ionicScrollDelegate.resize();
|
||||
$scope.$apply();
|
||||
}, 10);
|
||||
};
|
||||
|
||||
$scope.share = function() {
|
||||
if (!$scope.isCordova) return;
|
||||
var text = 'Visit Wallet.Bitcoin.com and get started using Bitcoin Cash today!';
|
||||
window.plugins.socialsharing.share(text, null, null, null);
|
||||
}
|
||||
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue