Skip to content

Commit

Permalink
Update GameDashboardCard.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Bouh committed Feb 4, 2025
1 parent 97e989d commit 845ee6d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion newIDE/app/src/GameDashboard/GameDashboardCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -513,9 +513,15 @@ const GameDashboardCard = ({
// Extract word translation to ensure it is not wrongly translated in the sentence.
const translatedConfirmText = i18n._(t`delete`);

let message = t`Your game and this project will be deleted. This action is irreversible. Do you want to continue?`;

if (isPublishedOnGdGames) {
message = t`This game is public on gd.games. If you continue the game and this project will be deleted. This action is irreversible. Do you want to continue?`;
}

const answer = await showDeleteConfirmation({
title: t`Delete game`,
message: t`Your game will be deleted. This action is irreversible. Do you want to continue?`,
message: message,
confirmButtonLabel: t`Delete game`,
fieldMessage: t`To confirm, type "${translatedConfirmText}"`,
confirmText: translatedConfirmText,
Expand Down

0 comments on commit 845ee6d

Please sign in to comment.