Skip to content

Commit

Permalink
Fixes game dashboard (#7166)
Browse files Browse the repository at this point in the history
Do not show in changelog
  • Loading branch information
ClementPasteau authored Nov 14, 2024
1 parent 5419493 commit 0f81e4c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion newIDE/app/src/GameDashboard/PublicGameProperties.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ export function PublicGameProperties({
>
<SelectOption
value="visible"
label={t`Visible on your profile page`}
label={t`Visible in the search and your profile`}
/>
<SelectOption value="hidden" label={t`Hidden`} />
</SelectField>
Expand Down
2 changes: 1 addition & 1 deletion newIDE/app/src/MarketingPlans/MarketingPlanUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const getRequirementsErrors = (
);
}
if (!!marketingPlanGameRequirements.isDiscoverable && !game.discoverable) {
requirementsErrors.push(<Trans>Your game is not discoverable</Trans>);
requirementsErrors.push(<Trans>Your game is hidden on gd.games</Trans>);
}

return requirementsErrors;
Expand Down
27 changes: 14 additions & 13 deletions newIDE/app/src/MarketingPlans/UsePurchaseMarketingPlan.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,20 @@ const usePurchaseMarketingPlan = ({
) : (
<Trans>Get Featuring</Trans>
),
message: canExtend ? (
<Trans>
You are about to use {planCreditsAmount} credits to extend the game
featuring {translatedName} for your game {game.gameName} and push it
to the top of gd.games. Continue?
</Trans>
) : (
<Trans>
You are about to use {planCreditsAmount} credits to purchase the
game featuring {translatedName} for your game {game.gameName}.
Continue?
</Trans>
),
message:
isPlanActive && canExtend ? (
<Trans>
You are about to use {planCreditsAmount} credits to extend the
game featuring {translatedName} for your game {game.gameName} and
push it to the top of gd.games. Continue?
</Trans>
) : (
<Trans>
You are about to use {planCreditsAmount} credits to purchase the
game featuring {translatedName} for your game {game.gameName}.
Continue?
</Trans>
),
onConfirm: async () => {
await buyGameFeaturing(getAuthorizationHeader, {
gameId: game.id,
Expand Down

0 comments on commit 0f81e4c

Please sign in to comment.