From f36ac285516f32cda0a52e79b855ea88ed29cffe Mon Sep 17 00:00:00 2001 From: romeonicholas Date: Mon, 13 Nov 2023 09:07:37 +0100 Subject: [PATCH] fix: Get reorder path working --- .../0e2028f83156_add_user_determined_display_order_to_.py | 1 + backend/capellacollab/projects/toolmodels/crud.py | 1 + frontend/src/app/app.module.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/backend/capellacollab/alembic/versions/0e2028f83156_add_user_determined_display_order_to_.py b/backend/capellacollab/alembic/versions/0e2028f83156_add_user_determined_display_order_to_.py index bb2f2da59a..9b9f2f2382 100644 --- a/backend/capellacollab/alembic/versions/0e2028f83156_add_user_determined_display_order_to_.py +++ b/backend/capellacollab/alembic/versions/0e2028f83156_add_user_determined_display_order_to_.py @@ -11,6 +11,7 @@ import sqlalchemy as sa from alembic import op + # revision identifiers, used by Alembic. revision = "0e2028f83156" down_revision = "ac0e6e0f77ee" diff --git a/backend/capellacollab/projects/toolmodels/crud.py b/backend/capellacollab/projects/toolmodels/crud.py index b2498ae248..c33607868a 100644 --- a/backend/capellacollab/projects/toolmodels/crud.py +++ b/backend/capellacollab/projects/toolmodels/crud.py @@ -92,6 +92,7 @@ def create_model( slug=slugify.slugify(post_model.name), description=post_model.description if post_model.description else "", project=project, + display_order=post_model.display_order, tool=tool, version=version, nature=nature, diff --git a/frontend/src/app/app.module.ts b/frontend/src/app/app.module.ts index 203fde8f75..38bc471bc9 100644 --- a/frontend/src/app/app.module.ts +++ b/frontend/src/app/app.module.ts @@ -143,6 +143,7 @@ import { T4CRepoDeletionDialogComponent } from './settings/modelsources/t4c-sett import { T4CSettingsWrapperComponent } from './settings/modelsources/t4c-settings/t4c-settings-wrapper/t4c-settings-wrapper.component'; import { T4CSettingsComponent } from './settings/modelsources/t4c-settings/t4c-settings.component'; import { SettingsComponent } from './settings/settings.component'; +import { ReorderModelsComponent } from './projects/project-detail/model-overview/reorder-models/reorder-models.component'; @NgModule({ declarations: [