Finishing case progress and save behavior

This commit is contained in:
Bruno Alves de Faria committed 2018-02-02 09:21:42 -02:00
1 parent abe7691730
commit 45a3cdeaf5
13 files changed
+87 -56

No files matched your search

@@ -1,3 +1,5 @@
import { Template } from 'meteor/templating';
Template.radialProgressBar.helpers({
progressComplete() {
const instance = Template.instance();
@@ -5,9 +7,9 @@ Template.radialProgressBar.helpers({
},
progressRadius() {
var radius = 21 * 2 * Math.PI;
const instance = Template.instance();
var percentLeft = (100 - instance.data.progressPercent) / 100;
const radius = 18 * 2 * Math.PI;
const percentLeft = (100 - instance.data.progressPercent) / 100;
return percentLeft * radius;
}
});