mirror of
https://github.com/frappe/books.git
synced 2025-02-02 20:18:26 +00:00
fix: Move openSettings to common utils
This commit is contained in:
parent
8133ad0300
commit
86f346913b
@ -158,7 +158,7 @@ import Button from '@/components/Button';
|
|||||||
import FormControl from '@/components/Controls/FormControl';
|
import FormControl from '@/components/Controls/FormControl';
|
||||||
import DropdownWithActions from '@/components/DropdownWithActions';
|
import DropdownWithActions from '@/components/DropdownWithActions';
|
||||||
import BackLink from '@/components/BackLink';
|
import BackLink from '@/components/BackLink';
|
||||||
import { openSettings } from '@/pages/Settings/utils';
|
import { openSettings } from '@/utils';
|
||||||
import {
|
import {
|
||||||
handleErrorWithDialog,
|
handleErrorWithDialog,
|
||||||
getActionsForDocument,
|
getActionsForDocument,
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
import { ipcRenderer } from 'electron';
|
|
||||||
|
|
||||||
export function openSettings(tab = 'General') {
|
|
||||||
ipcRenderer.send('open-settings-window', tab);
|
|
||||||
}
|
|
@ -1,5 +1,5 @@
|
|||||||
import frappe from 'frappejs';
|
import frappe from 'frappejs';
|
||||||
import { openSettings } from './pages/Settings/utils';
|
import { openSettings } from '@/utils';
|
||||||
import { _ } from 'frappejs/utils';
|
import { _ } from 'frappejs/utils';
|
||||||
import Icon from './components/Icon';
|
import Icon from './components/Icon';
|
||||||
import router from './router';
|
import router from './router';
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import frappe from 'frappejs';
|
import frappe from 'frappejs';
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import { _ } from 'frappejs/utils';
|
import { _ } from 'frappejs/utils';
|
||||||
import { remote, shell } from 'electron';
|
import { remote, shell, ipcRenderer } from 'electron';
|
||||||
import SQLite from 'frappejs/backends/sqlite';
|
import SQLite from 'frappejs/backends/sqlite';
|
||||||
import postStart from '../server/postStart';
|
import postStart from '../server/postStart';
|
||||||
import router from '@/router';
|
import router from '@/router';
|
||||||
@ -266,3 +266,7 @@ export function getActionsForDocument(doc) {
|
|||||||
|
|
||||||
return actions;
|
return actions;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function openSettings(tab = 'General') {
|
||||||
|
ipcRenderer.send('open-settings-window', tab);
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user