fix colors
This commit is contained in:
@@ -156,7 +156,7 @@ const items = ref([
|
||||
{
|
||||
label: 'Создать',
|
||||
icon: 'pi pi-plus',
|
||||
url:route.path,
|
||||
url:'',
|
||||
command: () => {
|
||||
drawerStore.setCategoryType('EXPENSE');
|
||||
drawerStore.setTransactionType('INSTANT');
|
||||
|
||||
@@ -176,7 +176,7 @@ const createTransaction = async (): Promise<void> => {
|
||||
if (editedTransaction.value.type.code === 'INSTANT') {
|
||||
editedTransaction.value.isDone = true;
|
||||
}
|
||||
|
||||
loading.value = true;
|
||||
// Отправляем запрос на создание транзакции и ждём результата
|
||||
const result = await createTransactionRequest(editedTransaction.value);
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@ export const deleteTransactionRequest = async (id: number) => {
|
||||
|
||||
export const getTransactionTypes = async () => {
|
||||
const spaceStore = useSpaceStore()
|
||||
return await apiClient.get(`/spaces/${spaceStore.space?.id}/transactions/types`);
|
||||
return await apiClient.get(`/transactions/types`);
|
||||
}
|
||||
|
||||
export const getTransactionCategoriesSums = async () => {
|
||||
|
||||
Reference in New Issue
Block a user