Skip to content
Open
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
3 changes: 3 additions & 0 deletions packages/visual-editor/locales/platform/cs/visual-editor.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages/visual-editor/locales/platform/da/visual-editor.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages/visual-editor/locales/platform/de/visual-editor.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages/visual-editor/locales/platform/en/visual-editor.json
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,9 @@
"product": "Product",
"promoBanner": "Promo Banner",
"promoMedia": "Promo Media",
"publishBlocked": {
"deploymentInProgress": "Update is disabled while deployment is in progress"
},
"publishError": {
"components": "delete or fix sections with errors",
"metaTitle": "fill in Meta Title for all locales by navigating to the top-level Page component's settings",
Expand Down
3 changes: 3 additions & 0 deletions packages/visual-editor/locales/platform/es/visual-editor.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages/visual-editor/locales/platform/et/visual-editor.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages/visual-editor/locales/platform/fi/visual-editor.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages/visual-editor/locales/platform/fr/visual-editor.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages/visual-editor/locales/platform/hr/visual-editor.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages/visual-editor/locales/platform/hu/visual-editor.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages/visual-editor/locales/platform/it/visual-editor.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages/visual-editor/locales/platform/ja/visual-editor.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages/visual-editor/locales/platform/lt/visual-editor.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages/visual-editor/locales/platform/lv/visual-editor.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages/visual-editor/locales/platform/nb/visual-editor.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages/visual-editor/locales/platform/nl/visual-editor.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages/visual-editor/locales/platform/pl/visual-editor.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages/visual-editor/locales/platform/pt/visual-editor.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages/visual-editor/locales/platform/ro/visual-editor.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages/visual-editor/locales/platform/sk/visual-editor.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages/visual-editor/locales/platform/sv/visual-editor.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages/visual-editor/locales/platform/tr/visual-editor.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages/visual-editor/locales/platform/zh/visual-editor.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ export const InternalThemeEditor = ({
setClearLocalChangesModalOpen={setClearLocalChangesModalOpen}
totalEntityCount={templateMetadata.totalEntityCount}
localDev={localDev}
deploymentInProgress={templateMetadata.deploymentInProgress}
/>
),
actionBar: () => <></>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,18 @@ export const LayoutHeader = (props: LayoutHeaderProps) => {
}
};

const deploymentInProgress = templateMetadata.deploymentInProgress;
const publishDisabled =
histories.length === 1 || hasErrors || deploymentInProgress;
const publishTooltipMessage = deploymentInProgress
? pt(
"publishBlocked.deploymentInProgress",
"Update is disabled while deployment is in progress"
)
: hasErrors
? getPublishErrorMessage(errorSources, errorDetails)
: undefined;

return (
<>
<LayoutApprovalModal
Expand Down Expand Up @@ -263,22 +275,26 @@ export const LayoutHeader = (props: LayoutHeaderProps) => {
<Tooltip>
<TooltipTrigger asChild>
<span
tabIndex={hasErrors ? 0 : -1}
className={hasErrors ? "ve-cursor-not-allowed" : ""}
tabIndex={publishDisabled ? 0 : -1}
className={publishDisabled ? "ve-cursor-not-allowed" : ""}
role={publishDisabled ? "button" : undefined}
aria-disabled={publishDisabled || undefined}
>
<Button
variant="secondary"
disabled={histories.length === 1 || hasErrors}
disabled={publishDisabled}
onClick={onButtonClick}
className={hasErrors ? "ve-pointer-events-none" : ""}
className={
publishDisabled ? "ve-pointer-events-none" : ""
}
>
{buttonText}
</Button>
</span>
</TooltipTrigger>
{hasErrors && (
{publishTooltipMessage && (
<TooltipContent className="ve-max-w-[320px] ve-whitespace-pre-line ve-text-left">
<p>{getPublishErrorMessage(errorSources, errorDetails)}</p>
<p>{publishTooltipMessage}</p>
</TooltipContent>
)}
</Tooltip>
Expand Down
Loading