Skip to content

Commit 0064403

Browse files
committed
Updated collection.py
1 parent 3e828b2 commit 0064403

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

sde_collections/models/collection.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -346,13 +346,13 @@ def workflow_status_button_color(self) -> str:
346346
@property
347347
def reindexing_status_button_color(self) -> str:
348348
color_choices = {
349-
1: "btn-light", # NOT_NEEDED
350-
2: "btn-warning", # NEEDED
351-
3: "btn-secondary", # FINISHED
352-
4: "btn-info", # READY_FOR_CURATION
353-
5: "btn-warning", # CURATION_IN_PROGRESS
354-
6: "btn-primary", # CURATED
355-
7: "btn-success", # INDEXED_ON_PROD
349+
1: "btn-light", # REINDEXING_NOT_NEEDED
350+
2: "btn-danger", # REINDEXING_NEEDED_ON_DEV (matching Ready For Engineering)
351+
3: "btn-info", # REINDEXING_FINISHED_ON_DEV (matching Indexing Finished on LRM Dev)
352+
4: "btn-info", # REINDEXING_READY_FOR_CURATION (matching Ready for Curation)
353+
5: "btn-success", # REINDEXING_CURATION_IN_PROGRESS (matching Curation in Progress)
354+
6: "btn-primary", # REINDEXING_CURATED (matching Curated)
355+
7: "btn-primary", # REINDEXING_INDEXED_ON_PROD (matching Prod: Perfect)
356356
}
357357
return color_choices[self.reindexing_status]
358358

0 commit comments

Comments
 (0)