-
-
↑↓ {{ t`Navigate` }}
-
↩ {{ t`Select` }}
-
esc {{ t`Close` }}
-
-
-
-
- {{ t`${suggestions.length} out of ${searcher.numSearches}` }}
-
-
-
-
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
↑↓ {{ t`Navigate` }}
+
↩ {{ t`Select` }}
+
esc {{ t`Close` }}
+
+
+
+
+ {{ t`${suggestions.length} out of ${searcher.numSearches}` }}
+
+
+
+
+
+
+
@@ -211,7 +220,7 @@ export default {
allowedLimits: [50, 100, 500, -1],
};
},
- inject: ['searcher', 'shortcuts', 'modKey'],
+ inject: ['searcher', 'shortcuts'],
components: { Modal, Button },
async mounted() {
if (fyo.store.isDevelopment) {
@@ -261,20 +270,12 @@ export default {
},
setShortcuts() {
for (const { shortcut, callback } of this.getShortcuts()) {
- if (this.platform === 'Mac') {
- this.shortcuts.meta.set([shortcut], callback);
- } else {
- this.shortcuts.ctrl.set([shortcut], callback);
- }
+ this.shortcuts.pmod.set([shortcut], callback);
}
},
deleteShortcuts() {
for (const { shortcut } of this.getShortcuts()) {
- if (this.platform === 'Mac') {
- this.shortcuts.meta.delete([shortcut]);
- } else {
- this.shortcuts.ctrl.delete([shortcut]);
- }
+ this.shortcuts.pmod.delete([shortcut]);
}
},
modKeyText(key) {
@@ -312,7 +313,7 @@ export default {
},
select(idx) {
this.idx = idx ?? this.idx;
- this.suggestionsthis.idx?.action();
+ this.suggestions[this.idx]?.action();
this.close();
},
scrollToHighlighted() {
diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue
index a11ea9c9..d908e0a4 100644
--- a/src/components/Sidebar.vue
+++ b/src/components/Sidebar.vue
@@ -162,8 +162,9 @@ import Button from 'src/components/Button.vue';
import { reportIssue } from 'src/errorHandling';
import { fyo } from 'src/initFyo';
import { openLink } from 'src/utils/ipcCalls';
+import { docsPathRef } from 'src/utils/refs';
import { getSidebarConfig } from 'src/utils/sidebarConfig';
-import { docsPath, routeTo } from 'src/utils/ui';
+import { routeTo } from 'src/utils/ui';
import router from '../router';
import Icon from './Icon.vue';
@@ -200,7 +201,7 @@ export default {
routeTo,
reportIssue,
openDocumentation() {
- openLink('https://docs.frappebooks.com/' + docsPath.value);
+ openLink('https://docs.frappebooks.com/' + docsPathRef.value);
},
setActiveGroup() {
const { fullPath } = this.$router.currentRoute.value;
diff --git a/src/pages/ChartOfAccounts.vue b/src/pages/ChartOfAccounts.vue
index a03cf9c9..67d4e661 100644
--- a/src/pages/ChartOfAccounts.vue
+++ b/src/pages/ChartOfAccounts.vue
@@ -147,7 +147,8 @@ import { ModelNameEnum } from 'models/types';
import PageHeader from 'src/components/PageHeader.vue';
import { fyo } from 'src/initFyo';
import { docsPathMap } from 'src/utils/misc';
-import { docsPath, openQuickEdit } from 'src/utils/ui';
+import { docsPathRef } from 'src/utils/refs';
+import { openQuickEdit } from 'src/utils/ui';
import { getMapFromList, removeAtIndex } from 'utils/index';
import { nextTick } from 'vue';
import Button from '../components/Button.vue';
@@ -184,7 +185,7 @@ export default {
window.coa = this;
}
- docsPath.value = docsPathMap.ChartOfAccounts;
+ docsPathRef.value = docsPathMap.ChartOfAccounts;
if (this.refetchTotals) {
await this.setTotalDebitAndCredit();
@@ -192,7 +193,7 @@ export default {
}
},
deactivated() {
- docsPath.value = '';
+ docsPathRef.value = '';
},
methods: {
async expand() {
diff --git a/src/pages/Dashboard/Dashboard.vue b/src/pages/Dashboard/Dashboard.vue
index 427f6186..fd084cc5 100644
--- a/src/pages/Dashboard/Dashboard.vue
+++ b/src/pages/Dashboard/Dashboard.vue
@@ -65,12 +65,12 @@
diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue
index d908e0a4..e4cf08d3 100644
--- a/src/components/Sidebar.vue
+++ b/src/components/Sidebar.vue
@@ -100,6 +100,20 @@
+
+
+
+
+
+