2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 07:40:55 +00:00

fix(ux): add CoA help

This commit is contained in:
18alantom 2022-06-20 13:11:47 +05:30
parent 7480763744
commit f45663853e
2 changed files with 7 additions and 1 deletions

View File

@ -141,7 +141,8 @@ import { isCredit } from 'models/helpers';
import { ModelNameEnum } from 'models/types'; import { ModelNameEnum } from 'models/types';
import PageHeader from 'src/components/PageHeader'; import PageHeader from 'src/components/PageHeader';
import { fyo } from 'src/initFyo'; import { fyo } from 'src/initFyo';
import { openQuickEdit } from 'src/utils/ui'; import { docsPathMap } from 'src/utils/misc';
import { docsPath, openQuickEdit } from 'src/utils/ui';
import { nextTick } from 'vue'; import { nextTick } from 'vue';
import { handleErrorWithDialog } from '../errorHandling'; import { handleErrorWithDialog } from '../errorHandling';
@ -163,6 +164,10 @@ export default {
if (fyo.store.isDevelopment) { if (fyo.store.isDevelopment) {
window.coa = this; window.coa = this;
} }
docsPath.value = docsPathMap.ChartOfAccounts
},
deactivated() {
docsPath.value = '';
}, },
methods: { methods: {
getBalanceString(account) { getBalanceString(account) {

View File

@ -106,4 +106,5 @@ export const docsPathMap: Record<string, string | undefined> = {
NumberSeries: 'miscellaneous/number-series', NumberSeries: 'miscellaneous/number-series',
DataImport: 'miscellaneous/data-import', DataImport: 'miscellaneous/data-import',
Settings: 'miscellaneous/settings', Settings: 'miscellaneous/settings',
ChartOfAccounts: 'miscellaneous/chart-of-accounts',
}; };