Updated the api call used by the add button in the clients page to use our new dialog.
This commit is contained in:
parent
9431a0502a
commit
b6d6a8b788
@ -27,17 +27,20 @@ import { FilterMatchMode } from "@primevue/core";
|
|||||||
import { useLoadingStore } from "../../stores/loading";
|
import { useLoadingStore } from "../../stores/loading";
|
||||||
import { usePaginationStore } from "../../stores/pagination";
|
import { usePaginationStore } from "../../stores/pagination";
|
||||||
import { useFiltersStore } from "../../stores/filters";
|
import { useFiltersStore } from "../../stores/filters";
|
||||||
|
import { useModalStore } from "../../stores/modal";
|
||||||
|
|
||||||
const loadingStore = useLoadingStore();
|
const loadingStore = useLoadingStore();
|
||||||
const paginationStore = usePaginationStore();
|
const paginationStore = usePaginationStore();
|
||||||
const filtersStore = useFiltersStore();
|
const filtersStore = useFiltersStore();
|
||||||
|
const modalStore = useModalStore();
|
||||||
|
|
||||||
const tableData = ref([]);
|
const tableData = ref([]);
|
||||||
const totalRecords = ref(0);
|
const totalRecords = ref(0);
|
||||||
const isLoading = ref(false);
|
const isLoading = ref(false);
|
||||||
|
|
||||||
const onClick = () => {
|
const onClick = () => {
|
||||||
frappe.new_doc("Customer");
|
//frappe.new_doc("Customer");
|
||||||
|
modalStore.openCreateClient();
|
||||||
};
|
};
|
||||||
|
|
||||||
const filters = {
|
const filters = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user