Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision

Target

Select target project
  • coscine/frontend/apps/aimsfrontend
1 result
Select Git revision
Show changes
Commits on Source (4)
version: "3.7"
services:
app:
build:
target: develop
# Disable SeLinux, only do this for dev!
security_opt:
- label=disable
user: node
userns_mode: keep-id:uid=1000,gid=1000
userns_mode: 'keep-id:uid=1000,gid=1000'
environment:
SSH_AUTH_SOCK: /.ssh/ssh-agent.sock
MOCKUP: "false"
command: /bin/sh -c "while sleep 2s; do :; done"
MOCKUP: 'false'
command: '/bin/sh -c "while sleep 2s; do :; done"'
labels:
- "traefik.enable=true"
- "traefik.http.routers.web-aims.rule=HostRegexp(`^web-aims-.*$`)"
- "traefik.http.routers.web-aims.rule=HostRegexp(`^aims-.*$`)"
- "traefik.http.routers.web-aims.entrypoints=web"
volumes:
- ..:/workspace/app:cached
- ./.vscode-server:/home/node/.vscode-server/:cached
- '..:/workspace/app'
- './.vscode-server:/home/node/.vscode-server/'
- ${SSH_AUTH_SOCK}:/.ssh/ssh-agent.sock
networks:
- proxy-net
- default
networks:
default:
driver: bridge
......
{
"name": "aimsfrontend",
"version": "3.0.7",
"version": "3.0.8",
"scripts": {
"dev": "vite",
"build": "vite build",
......
......@@ -411,7 +411,10 @@ export default defineComponent({
query: { applicationProfile: selectedApplicationProfile.base_url },
});
}
if (selectedApplicationProfile.definition === undefined) {
if (
selectedApplicationProfile.definition === undefined &&
selectedApplicationProfile.state !== State.DRAFT
) {
this.queryingApplicationProfile = true;
try {
this.selectedApplicationProfile = await this.getApplicationProfile(
......
......@@ -55,7 +55,9 @@ export const useNotificationStore = defineStore({
const status = error.response.status;
const coscineErrorResponse = error.response
.data as CoscineErrorResponse;
if (error.response?.status === 404) {
return; // 404 error is ignored for drafts since they may not exist on the server yet, triggering a 404 when refresh the page
}
// eslint-disable-next-line unicorn/prefer-ternary
if (status === 401) {
notification = {
......