diff --git a/newIDE/app/src/Export/Builds/BuildsList.js b/newIDE/app/src/Export/Builds/BuildsList.js index 532dd1f7fa..8b263f2729 100644 --- a/newIDE/app/src/Export/Builds/BuildsList.js +++ b/newIDE/app/src/Export/Builds/BuildsList.js @@ -11,12 +11,14 @@ import { Column, Line } from '../../UI/Grid'; import EmptyMessage from '../../UI/EmptyMessage'; import PlaceholderLoader from '../../UI/PlaceholderLoader'; import BuildProgress from './BuildProgress'; +import { type UserProfile } from '../../Profile/UserProfileContext'; import format from 'date-fns/format'; import difference_in_calendar_days from 'date-fns/difference_in_calendar_days'; import Text from '../../UI/Text'; type Props = {| builds: ?Array, + userProfile: UserProfile, onDownload: (build: Build, key: BuildArtifactKeyName) => void, |}; @@ -41,7 +43,7 @@ const formatBuildText = ( } }; -export default ({ builds, onDownload }: Props) => { +export default ({ builds, userProfile, onDownload }: Props) => { return ( @@ -49,19 +51,23 @@ export default ({ builds, onDownload }: Props) => { This is the list of builds that you've done. Note that you can - download games generated during to 7 days, after which they are - removed. + download games generated during the last 7 days, after which they + are removed. - {!builds ? ( + {!userProfile.authenticated ? ( + + You need to login first to see your builds. + + ) : !builds ? ( ) : builds.length === 0 ? ( - You don't have any builds on the online services for now + You don't have any builds on the online services for now. ) : ( diff --git a/newIDE/app/src/Export/Builds/index.js b/newIDE/app/src/Export/Builds/index.js index e8223fe63a..34b92cbaaa 100644 --- a/newIDE/app/src/Export/Builds/index.js +++ b/newIDE/app/src/Export/Builds/index.js @@ -82,7 +82,11 @@ export default class Builds extends Component { render() { return ( - + ); } }