Showing the session log some love. Replaced slider with checkbox bar.

This commit is contained in:
Andy Phillipson 2017-07-19 16:42:15 -04:00
commit adc81ffa4c
No known key found for this signature in database
GPG key ID: D813A67D567D6C88
16 changed files with 192 additions and 212 deletions

View file

@ -1,7 +1,7 @@
'use strict';
angular.module('copayApp.directives')
.directive('logOptions', function($timeout) {
.directive('logOptions', function($timeout, platformInfo) {
return {
restrict: 'E',
templateUrl: 'views/includes/logOptions.html',
@ -10,13 +10,17 @@ angular.module('copayApp.directives')
show: '=logOptionsShow',
options: '=logOptions',
fillClass: '=logOptionsFillClass',
title: '=logOptionsTitle',
onSelect: '=logOptionsOnSelect'
onSelect: '=logOptionsOnSelect',
onCopy: '=logOptionsOnCopy',
onSend: '=logOptionsOnSend'
},
link: function(scope, element, attrs) {
scope.isCordova = platformInfo.isCordova;
scope.hide = function() {
scope.show = false;
};
scope.getFillClass = function(index) {
scope.onSelect(index);
};