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(dashboard): retire la bannière #1763

Merged
merged 2 commits into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
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
11 changes: 6 additions & 5 deletions dashboard/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ COPY --chown=1000:1000 dashboard/. .
ENV NODE_ENV=production

RUN --mount=type=secret,id=sentry_auth_token \
yarn build; \
if [ -f "/run/secrets/sentry_auth_token" ]; then \
export SENTRY_AUTH_TOKEN=$(cat /run/secrets/sentry_auth_token); \
yarn sentry:sourcemaps; \
fi
yarn build;
# yarn build; \
# if [ -f "/run/secrets/sentry_auth_token" ]; then \
# export SENTRY_AUTH_TOKEN=$(cat /run/secrets/sentry_auth_token); \
# yarn sentry:sourcemaps; \
# fi

FROM ghcr.io/socialgouv/docker/nginx4spa:7.0.1

Expand Down
2 changes: 2 additions & 0 deletions dashboard/src/components/VersionOutdatedAlert.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ export default function VersionOutdatedAlert() {
const apiVersion = useRecoilValue(apiVersionState);
const minimumDashboardVersion = useRecoilValue(minimumDashboardVersionState);

return null;

if (!apiVersion || (compare(apiVersion, VERSION, '<=') && (!minimumDashboardVersion || compare(minimumDashboardVersion, VERSION, '<=')))) {
return null;
}
Expand Down
Loading