Skip to content

Commit

Permalink
Feature: Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pKallert committed Nov 23, 2023
1 parent 59dbf36 commit 039f43d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ export enum actionTypes {
}

/**
* Opens the add node modal.
* Opens the sync workspace modal
*/
const open = () => createAction(actionTypes.OPEN);

/**
* Closes the add node modal.
* Closes the sync workspace modal
*/
const cancel = () => createAction(actionTypes.CANCEL);

/**
* Closes the add node modal.
* Triggers the workspace rebase
*/
const apply = () => createAction(actionTypes.APPLY);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,37 +69,4 @@ export default class WorkspaceSync extends PureComponent {
}
return (null);
}

/* getTranslatedMainButton(baseWorkspaceTitle = '') {
const {
publishableNodesInDocument,
isSaving,
isPublishing,
isDiscarding
} = this.props;
const canPublishLocally = publishableNodesInDocument && (publishableNodesInDocument.length > 0);
if (isSaving) {
return <I18n id="Neos.Neos:Main:saving" fallback="saving"/>;
}
if (isPublishing) {
return <I18n id="Neos.Neos:Main:publishTo" fallback="Publish to" params={{0: baseWorkspaceTitle}}/>;
}
if (isDiscarding) {
return 'Discarding...';
}
if (canPublishLocally) {
return <I18n id="Neos.Neos:Main:publishTo" fallback="Publish to" params={{0: baseWorkspaceTitle}}/>;
}
return (
<Fragment>
<I18n id="Neos.Neos:Main:published" fallback="Published"/>
{(baseWorkspaceTitle ? ' - ' + baseWorkspaceTitle : '')}
</Fragment>
);
} */
}

0 comments on commit 039f43d

Please sign in to comment.