Minor release fixes.

This commit is contained in:
Patrick Fic
2022-08-26 13:59:44 -07:00
parent 79563a5cba
commit f5c9a7dfef
3 changed files with 40 additions and 13 deletions

View File

@@ -1,5 +1,15 @@
import { useMutation } from "@apollo/client";
import { Button, Card, Form, Input, Menu, Popover, Select, Space } from "antd";
import {
Button,
Card,
Form,
Input,
Menu,
notification,
Popover,
Select,
Space,
} from "antd";
import moment from "moment";
import React, { useState } from "react";
import { useTranslation } from "react-i18next";
@@ -40,6 +50,10 @@ export function JobsDetailHeaderAddEvent({ bodyshop, jobid, ...props }) {
},
refetchQueries: ["QUERY_ALL_ACTIVE_APPOINTMENTS"],
});
notification.open({
type: "success",
message: t("appointments.successes.created"),
});
} catch (error) {
console.log(error);
} finally {

View File

@@ -40,7 +40,10 @@ export function ScheduleCalendarHeaderComponent({
if (!events) return [];
return _.groupBy(
events.filter(
(e) => !e.vacation && moment(date).isSame(moment(e.start), "day")
(e) =>
!e.vacation &&
e.isintake &&
moment(date).isSame(moment(e.start), "day")
),
"job.alt_transport"
);