From 88fc45975f3d055b53c5f7bdd6b1d0b58262a1b7 Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Mon, 3 Feb 2020 17:38:07 +0530 Subject: [PATCH 1/3] fix: account for letter casing while creating new collection --- store/postwoman.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/postwoman.js b/store/postwoman.js index 09f13178f..a44a07bc0 100644 --- a/store/postwoman.js +++ b/store/postwoman.js @@ -112,7 +112,7 @@ export const mutations = { addNewCollection({ collections }, collection) { const { name } = collection; - const duplicateCollection = collections.some(item => item.name === name); + const duplicateCollection = collections.some(item => item.name.toLowerCase() === name.toLowerCase()); if (duplicateCollection) { this.$toast.info("Duplicate collection"); return; From 955bb5c99d0b3a710bf2719a7380e8e1eebf4705 Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Mon, 3 Feb 2020 17:38:38 +0530 Subject: [PATCH 2/3] fix: account for letter casing while creating editing a collection --- store/postwoman.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/postwoman.js b/store/postwoman.js index a44a07bc0..870958d96 100644 --- a/store/postwoman.js +++ b/store/postwoman.js @@ -133,7 +133,7 @@ export const mutations = { editCollection({ collections }, payload) { const { collection, collectionIndex } = payload; const { name } = collection; - const duplicateCollection = collections.some(item => item.name === name); + const duplicateCollection = collections.some(item => item.name.toLowerCase() === name.toLowerCase()); if (duplicateCollection) { this.$toast.info("Duplicate collection"); return; From d0cf780ea22cb71bb7919ab6706ac8c6d57f5a8d Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Mon, 3 Feb 2020 17:47:48 -0500 Subject: [PATCH 3/3] Show Ctrl instead of Command for shortcuts non-Apple platforms --- layouts/default.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/layouts/default.vue b/layouts/default.vue index 0e44bca59..ba1973406 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -566,19 +566,19 @@
- ⌘ G + {{ getSpecialKey() }} G
- ⌘ S + {{ getSpecialKey() }} S
- ⌘ K + {{ getSpecialKey() }} K
- ⌘ L + {{ getSpecialKey() }} L
@@ -677,6 +677,9 @@ export default { }, methods: { + getSpecialKey() { + return (/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)) ? "⌘" : "Ctrl"; + }, linkActive(path) { return { "nuxt-link-exact-active": this.$route.path === path,