Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/AppMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import { path } from "@tauri-apps/api";
import { confirm } from "@tauri-apps/plugin-dialog";
import { observer } from "mobx-react";
import { Component } from "react";
import { toast } from "react-toastify";
import {
newProject,
saveProjectDialog,
Expand Down Expand Up @@ -52,7 +51,6 @@ class AppMenu extends Component<Props, State> {
CopyToClipboardButton({ data, tooltip }: { data: any; tooltip: string }) {
const handleAction = async function () {
await navigator.clipboard.writeText(data);
toast.success("Copied to clipboard");
};

return (
Expand Down
3 changes: 1 addition & 2 deletions src/document/DocumentManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -726,10 +726,9 @@ export async function generateAndExport(uuid: string) {

export async function generateWithToastsAndExport(uuid: string) {
tracing.debug("generateWithToastsAndExport", uuid);
const pathName = doc.pathlist.paths.get(uuid)?.name;

await doc.generatePathWithToasts(uuid);
await toast.promise(writeTrajectory(uuid), {
success: `Saved "${pathName}" to ${uiState.projectDir}.`,
error: {
render(toastProps) {
tracing.error(toastProps.data);
Expand Down
6 changes: 0 additions & 6 deletions src/document/DocumentModel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -298,12 +298,6 @@ export const DocumentStore = types
toast.error("Tried to generate unknown path.");
}
return toast.promise(self.generatePath(activePathUUID), {
success: {
render({ data, toastProps }) {
return `Generated "${pathName}"`;
}
},

error: {
render({ data, toastProps }) {
tracing.error("generatePathWithToasts:", data);
Expand Down
Loading