Skip to content

Commit

Permalink
fixup! feat(releases): first stab at schedule and unschedule releases
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge committed Oct 28, 2024
1 parent 8d00cb2 commit 14f3bc0
Showing 1 changed file with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,7 @@ export const ReleasePublishAllButton = ({
status: 'error',
title: (
<Text muted size={1}>
<Translate
t={t}
i18nKey="toast.publish.error"
values={{title: release.metadata.title}}
/>
<Translate t={t} i18nKey="toast.error" values={{title: release.metadata.title}} />
</Text>
),
})
Expand All @@ -84,8 +80,8 @@ export const ReleasePublishAllButton = ({

return (
<Dialog
id="confirm-ggg"
header={t('ggg.confirm-publish.title')}
id="confirm-publish-dialog"
header={t('publish-dialog.confirm-publish.title')}
onClose={() => setPublishBundleStatus('idle')}
footer={{
confirmButton: {
Expand All @@ -101,7 +97,7 @@ export const ReleasePublishAllButton = ({
{
<Translate
t={t}
i18nKey="ggg.confirm-publish-description"
i18nKey="publish-dialog.confirm-publish-description"
values={{
title: release.metadata.title,
releaseDocumentsLength: documents.length,
Expand All @@ -119,11 +115,11 @@ export const ReleasePublishAllButton = ({

const tooltipText = () => {
if (isValidatingDocuments) {
return t('ggg.validation.loading')
return t('publish-dialog.validation.loading')
}

if (hasDocumentValidationErrors) {
return t('ggg.validation.error')
return t('publish-dialog.validation.error')
}

return null
Expand Down

0 comments on commit 14f3bc0

Please sign in to comment.