gpt-engineer-app[bot] commited on
Commit ·
e41291b
1
Parent(s): e022132
Changes
Browse files
src/routes/dashboard.branch-debug.tsx
CHANGED
|
@@ -1120,9 +1120,11 @@ function ExportButtons({ result, mode }: { result: DebugResult; mode: "diff" | "
|
|
| 1120 |
};
|
| 1121 |
|
| 1122 |
const createJiraTicket = async () => {
|
| 1123 |
-
if (
|
|
|
|
|
|
|
|
|
|
| 1124 |
persistJira();
|
| 1125 |
-
// Also download the report files so the user can attach them after Jira opens
|
| 1126 |
exportMarkdown();
|
| 1127 |
exportJson();
|
| 1128 |
try {
|
|
@@ -1136,7 +1138,10 @@ function ExportButtons({ result, mode }: { result: DebugResult; mode: "diff" | "
|
|
| 1136 |
};
|
| 1137 |
|
| 1138 |
const copyJiraLink = async () => {
|
| 1139 |
-
if (
|
|
|
|
|
|
|
|
|
|
| 1140 |
persistJira();
|
| 1141 |
try {
|
| 1142 |
await navigator.clipboard.writeText(buildJiraUrl());
|
|
|
|
| 1120 |
};
|
| 1121 |
|
| 1122 |
const createJiraTicket = async () => {
|
| 1123 |
+
if (hasJiraErrors) {
|
| 1124 |
+
toast.error(jiraErrors.baseUrl || jiraErrors.issueType || "Fix the highlighted fields");
|
| 1125 |
+
return;
|
| 1126 |
+
}
|
| 1127 |
persistJira();
|
|
|
|
| 1128 |
exportMarkdown();
|
| 1129 |
exportJson();
|
| 1130 |
try {
|
|
|
|
| 1138 |
};
|
| 1139 |
|
| 1140 |
const copyJiraLink = async () => {
|
| 1141 |
+
if (hasJiraErrors) {
|
| 1142 |
+
toast.error(jiraErrors.baseUrl || jiraErrors.issueType || "Fix the highlighted fields");
|
| 1143 |
+
return;
|
| 1144 |
+
}
|
| 1145 |
persistJira();
|
| 1146 |
try {
|
| 1147 |
await navigator.clipboard.writeText(buildJiraUrl());
|