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

Fix stats page if releaseDate is missing #1315

Merged
merged 4 commits into from May 7, 2021
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -70,14 +70,18 @@ export const ComponentsWidget: React.FunctionComponent<ComponentsWidgetProps> =
</div>
<div className={classes.paragraph}>
{localization.latestBackendRelease}{' '}
{latestBackendRelease && dateUtils.formatDate(latestBackendRelease!.ReleaseDate, 'yyyy.MM.dd HH:mm aaa')}
{latestBackendRelease?.ReleaseDate
? dateUtils.formatDate(latestBackendRelease!.ReleaseDate, 'yyyy.MM.dd HH:mm aaa')
: localization.notAvailable}
<Link className={classes.link} href="https://www.sensenet.com/backend-updates" target="_blank" rel="noopener">
{localization.goToChangeLog}
</Link>
</div>
<div className={classes.paragraph}>
{localization.latestFrontendRelease}{' '}
{latestFrontendRelease && dateUtils.formatDate(latestFrontendRelease!.ReleaseDate, 'yyyy.MM.dd HH:mm aaa')}
{latestFrontendRelease?.ReleaseDate
? dateUtils.formatDate(latestFrontendRelease!.ReleaseDate, 'yyyy.MM.dd HH:mm aaa')
: localization.notAvailable}
<Link
className={classes.link}
href="https://www.sensenet.com/frontend-updates"
Expand All @@ -102,7 +106,7 @@ export const ComponentsWidget: React.FunctionComponent<ComponentsWidgetProps> =
<TableRow key={row.ComponentId}>
<TableCell align="left">{row.ComponentId}</TableCell>
<TableCell align="center">{row.Version}</TableCell>
<TableCell align="center">{row.LatestVersion || 'N/A'}</TableCell>
<TableCell align="center">{row.LatestVersion || localization.notAvailable}</TableCell>
<TableCell align="center" className={globalClasses.centeredVertical}>
{row.LatestVersion !== null ? (
row.LatestVersion === row.Version ? (
Expand Down
1 change: 1 addition & 0 deletions apps/sensenet/src/localization/default.ts
Expand Up @@ -461,6 +461,7 @@ const values = {
componentsInfo: 'Components of your sensenet instance. These components may include one or more packages.',
installedPackagesInfo:
'These packages are mainly the building bricks of sensenet components. There are tool-like packages that are not part of the component structure, they were made to run multiple times, for example delete or index content.',
notAvailable: 'Not available',
},
customActions: {
executeCustomActionDialog: {
Expand Down
1 change: 1 addition & 0 deletions apps/sensenet/src/localization/hungarian.ts
Expand Up @@ -199,6 +199,7 @@ const values: DeepPartial<typeof import('./default').default> = {
'A sensenet komponensei. Egy komponens állhat több csomagból is, de akár egy csomag is alkothat komponenst.',
installedPackagesInfo:
'Csomagok, melyekből a sensenet komponensek felépülnek. Léteznek olyan csomagok is, melyek nem felelősek a komponensekért, többszöri futtatásra lettek létrehozva - ilyenek a tool-típusú csomagok. Ezek például kontent törlésre vagy indexelésre használatosak.',
notAvailable: 'Nem elérhető',
},
forms: {
referencePicker: 'Referencia választó',
Expand Down