Fixed initial Control view units combo state
authorJoseph Coffland <joseph@cauldrondevelopment.com>
Sun, 24 Jun 2018 23:31:34 +0000 (16:31 -0700)
committerJoseph Coffland <joseph@cauldrondevelopment.com>
Sun, 24 Jun 2018 23:31:34 +0000 (16:31 -0700)
src/js/control-view.js

index ec4c5e75363493ff324d03ecb092b92de0e0d8d6..05b253faa278f4c32a6725e743e181db796f84ff 100644 (file)
@@ -72,8 +72,11 @@ module.exports = {
 
 
   watch: {
-    'state.imperial': function (imperial) {
-      this.mach_units = imperial ? 'IMPERIAL' : 'METRIC';
+    'state.imperial': {
+      handler: function (imperial) {
+        this.mach_units = imperial ? 'IMPERIAL' : 'METRIC';
+      },
+      immediate: true
     },