Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update links #4

Merged
merged 1 commit into from
Dec 15, 2023
Merged
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
19 changes: 16 additions & 3 deletions app/src/UX/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ export default class Home extends Component<IHomeProps, IHomeState> {
this._handleNewProjectCreatorChange = this._handleNewProjectCreatorChange.bind(this);
this._handleSelectFolderClick = this._handleSelectFolderClick.bind(this);
this._handleExportToolClick = this._handleExportToolClick.bind(this);
this._handleExportAllKey = this._handleExportAllKey.bind(this);
this._handleExportAllClick = this._handleExportAllClick.bind(this);
this._handleNewSearch = this._handleNewSearch.bind(this);
this._handleConnectClick = this._handleConnectClick.bind(this);
Expand Down Expand Up @@ -374,6 +375,12 @@ export default class Home extends Component<IHomeProps, IHomeState> {
this.props.onModeChangeRequested(AppMode.exporterTool);
}

async _handleExportAllKey(event: React.KeyboardEvent) {
if (event.key === "Enter") {
await this._handleExportAllClick();
}
}

async _handleExportAllClick() {
const operId = await this.props.carto.notifyOperationStarted("Exporting all projects as zip.");

Expand Down Expand Up @@ -919,7 +926,13 @@ export default class Home extends Component<IHomeProps, IHomeState> {
storageAction = (
<span>
&#160;&#160;
<span className="home-clickLink" onClick={this._handleExportAllClick}>
<span
className="home-clickLink"
tabIndex={0}
role="button"
onClick={this._handleExportAllClick}
onKeyDown={this._handleExportAllKey}
>
Save backups
</span>
.
Expand Down Expand Up @@ -985,7 +998,7 @@ export default class Home extends Component<IHomeProps, IHomeState> {
Docs
</a>
&#160;&#160;/&#160;&#160;
<a href="https://github.com/mojang/minecraft-creator-tools" target="_blank" rel="noreferrer noopener">
<a href={constants.repositoryUrl} target="_blank" rel="noreferrer noopener">
GitHub
</a>
{webOnlyLinks}
Expand Down Expand Up @@ -1040,7 +1053,7 @@ export default class Home extends Component<IHomeProps, IHomeState> {
</a>{" "}
and{" "}
<a
href="https://github.com/mojang/minecraft-creator-tools-internal"
href={constants.repositoryUrl}
className="home-header-docsLink"
target="_blank"
rel="noreferrer noopener"
Expand Down