From 2e13137c9a1d00a22dbcc3b0e902e429624ce39c Mon Sep 17 00:00:00 2001
From: Adam Procter <adamprocter@researchnot.es>
Date: Fri, 18 Dec 2020 13:31:55 +0000
Subject: [PATCH] bug fix for n shortcut

---
 .DS_Store                 | Bin 10244 -> 10244 bytes
 CHANGELOG.md              |  10 +++++++++-
 app/package.json          |   2 +-
 app/src/views/Collect.vue |   9 +++++++--
 4 files changed, 17 insertions(+), 4 deletions(-)

diff --git a/.DS_Store b/.DS_Store
index 730468d8f36d609db8a6a635e5dab39b6e0cf1e2..1ab20c7b71ff4029745ecb92bd55477edf3d3461 100644
GIT binary patch
delta 201
zcmZn(XbIThF5vbxsURn_xWvHV1|t(Q3o9Et2PYRN4<{cdXKZjretB?7Vo7PSQ({rP
zfJ|^^N@`MKQFvxbNk&L&o@-8OS!$ktkxybt>f{Om&-7@JhJeJ944@)TWrs8e1`y!n
z;EWfLsIE3PHq%isG&HW&QK&XIH_%ZqF*d8M<>cg$RCf!CD{bnVHG9d@Wy=p82J2#A
dWQ5QRf>0Vp9oZ}>c#3Z`yTUJ)%~wU3nF0S|HD&++

delta 160
zcmZn(XbIThE?{^vsURn_xWvHVIwKP^3o9Et2L}f?2QNo#a7KQ4a7kiGX|YpcQ8b7b
zkXVwDlsLIpz%zi8laqrpUO=L{+St-iN5Rm-uvSN*+T7egN5RC{thSbuLtNF+)-xfu
qvZ}hKwr(Z^7%(zIXa;^L4WnjlwiP_ZH?cuyGrPhsmd(1N%*+63{w7NR

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7f7c25c..ee086e7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,12 @@
+# 0.1.46
+
+_18th Decemeber 2020_
+
+### Fixed
+
+- The initial onboarding microcosm should not longer allow you to save nodes.
+- Keyboard shortcut n now works on Collect view on first visit to new microcosm.
+
 # 0.1.45
 
 _17th December 2020_
@@ -9,7 +18,6 @@ _17th December 2020_
 ### Fixed
 
 - Some sync bug fixes.
-- The initial onboarding microcosm should not longer allow you to save nodes.
 - You can now colour nodes in Collect and Card views.
 - initial node creation failed on new microcosm without switching views.
 - Force load on Collect view.
diff --git a/app/package.json b/app/package.json
index 8db2171..4a3aabb 100644
--- a/app/package.json
+++ b/app/package.json
@@ -1,6 +1,6 @@
 {
   "name": "nodenogg.in",
-  "version": "0.1.45",
+  "version": "0.1.46",
   "private": true,
   "scripts": {
     "serve": "vue-cli-service serve",
diff --git a/app/src/views/Collect.vue b/app/src/views/Collect.vue
index 08ba13c..3b959f4 100644
--- a/app/src/views/Collect.vue
+++ b/app/src/views/Collect.vue
@@ -98,8 +98,7 @@ export default {
   },
 
   mounted() {
-    var e = false
-    this.$store.dispatch('shortcutState', e)
+    setTimeout(this.loadShortcut, 1000)
   },
 
   beforeDestroy() {
@@ -109,11 +108,17 @@ export default {
   },
 
   methods: {
+    loadShortcut() {
+      var e = false
+      this.$store.dispatch('shortcutState', e)
+    },
+
     clientAdded() {
       this.clientset = !this.clientset
     },
 
     addNode() {
+      // console.log('add called')
       this.$store.dispatch('addNode')
       this.added = !this.added
     },
-- 
GitLab