chore: add more translation keys (#6715)

This commit is contained in:
Aaryan Khandelwal
2025-03-07 11:31:41 +05:30
committed by GitHub
parent 21d7a1865c
commit 7005ae2b53
9 changed files with 32 additions and 23 deletions

View File

@@ -241,11 +241,11 @@ export const CreateUpdateIssueModalBase: React.FC<IssuesModalProps> = observer((
setDescription("<p></p>");
setChangesMade(null);
return response;
} catch (error) {
} catch (error: any) {
setToast({
type: TOAST_TYPE.ERROR,
title: t("error"),
message: t(is_draft_issue ? "draft_creation_failed" : "issue_creation_failed"),
message: error?.error ?? t(is_draft_issue ? "draft_creation_failed" : "issue_creation_failed"),
});
captureIssueEvent({
eventName: ISSUE_CREATED,
@@ -299,12 +299,12 @@ export const CreateUpdateIssueModalBase: React.FC<IssuesModalProps> = observer((
path: pathname,
});
handleClose();
} catch (error) {
} catch (error: any) {
console.error(error);
setToast({
type: TOAST_TYPE.ERROR,
title: t("error"),
message: t("issue_could_not_be_updated"),
message: error?.error ?? t("issue_could_not_be_updated"),
});
captureIssueEvent({
eventName: ISSUE_UPDATED,

View File

@@ -38,12 +38,14 @@
background-color: rgba(var(--color-background-80));
}
[cmdk-item][aria-disabled="true"], [cmdk-item][data-disabled="true"] {
[cmdk-item][aria-disabled="true"],
[cmdk-item][data-disabled="true"] {
cursor: not-allowed;
opacity: 0.5;
background-color: transparent;
}
[cmdk-item][aria-disabled="true"]:hover, [cmdk-item][data-disabled="true"]:hover {
background-color: transparent;
[cmdk-item][aria-disabled="true"]:hover,
[cmdk-item][data-disabled="true"]:hover {
background-color: rgba(var(--color-background-80), 0.7);
}