From c7192f2adc01f230794ded23047e72e87ded1379 Mon Sep 17 00:00:00 2001
From: blavenie <benoit.lavenier@e-is.pro>
Date: Sat, 23 Sep 2017 13:11:30 +0200
Subject: [PATCH] [fix] Currency > Monetary mass > Scale option not updated -
 fix #566

---
 .../currency/popover_monetary_mass_actions.html    | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)

diff --git a/www/plugins/graph/templates/currency/popover_monetary_mass_actions.html b/www/plugins/graph/templates/currency/popover_monetary_mass_actions.html
index 785dfa0e3..480a74124 100644
--- a/www/plugins/graph/templates/currency/popover_monetary_mass_actions.html
+++ b/www/plugins/graph/templates/currency/popover_monetary_mass_actions.html
@@ -5,18 +5,10 @@
   <ion-content scroll="false">
     <div class="list item-text-wrap">
 
-      <!-- scale: linear -->
-      <a class="item item-icon-right ink"
-         ng-click="setScale('linear')">
-        <span ng-bind-html="'GRAPH.COMMON.LINEAR_SCALE' | translate"></span>
-        <i class="icon ion-ios-checkmark-empty" ng-show="scale=='linear'"></i>
-      </a>
-
-      <!-- duration: day -->
-      <a class="item item-icon-right ink"
-         ng-click="setScale('logarithmic')">
+      <a class="item item-icon-left ink"
+         ng-click="toggleScale()">
+        <i class="icon ion-ios-checkmark-empty" ng-show="formData.scale=='logarithmic'"></i>
         <span ng-bind-html="'GRAPH.COMMON.LOGARITHMIC_SCALE' | translate"></span>
-        <i class="icon ion-ios-checkmark-empty" ng-show="scale=='logarithmic'"></i>
       </a>
 
     </div>
-- 
GitLab