Skip to content

Commit

Permalink
Merge pull request #1162 from NASA-IMPACT/1150-status-button-color-ma…
Browse files Browse the repository at this point in the history
…tches

1150 status button color matches
  • Loading branch information
CarsonDavis authored Dec 19, 2024
2 parents 0ad2dc7 + a081574 commit fcc70eb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions sde_collections/models/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,13 +346,13 @@ def workflow_status_button_color(self) -> str:
@property
def reindexing_status_button_color(self) -> str:
color_choices = {
1: "btn-light", # NOT_NEEDED
2: "btn-warning", # NEEDED
3: "btn-secondary", # FINISHED
4: "btn-info", # READY_FOR_CURATION
5: "btn-warning", # CURATION_IN_PROGRESS
6: "btn-primary", # CURATED
7: "btn-success", # INDEXED_ON_PROD
1: "btn-light", # REINDEXING_NOT_NEEDED
2: "btn-danger", # REINDEXING_NEEDED_ON_DEV (matching Ready For Engineering)
3: "btn-info", # REINDEXING_FINISHED_ON_DEV (matching Indexing Finished on LRM Dev)
4: "btn-info", # REINDEXING_READY_FOR_CURATION (matching Ready for Curation)
5: "btn-success", # REINDEXING_CURATION_IN_PROGRESS (matching Curation in Progress)
6: "btn-primary", # REINDEXING_CURATED (matching Curated)
7: "btn-primary", # REINDEXING_INDEXED_ON_PROD (matching Prod: Perfect)
}
return color_choices[self.reindexing_status]

Expand Down
14 changes: 7 additions & 7 deletions sde_indexing_helper/static/js/delta_url_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -2221,13 +2221,13 @@ function handleReindexingStatusSelect() {
case "changeReindexingStatus":
var color_choices = {
1: "btn-light", // REINDEXING_NOT_NEEDED
2: "btn-warning", // REINDEXING_NEEDED_ON_DEV
3: "btn-secondary", // REINDEXING_FINISHED_ON_DEV
4: "btn-info", // REINDEXING_READY_FOR_CURATION
5: "btn-warning", // REINDEXING_CURATION_IN_PROGRESS
6: "btn-primary", // REINDEXING_CURATED
7: "btn-success" // REINDEXING_INDEXED_ON_PROD
};
2: "btn-danger", // REINDEXING_NEEDED_ON_DEV (matching Ready For Engineering)
3: "btn-info", // REINDEXING_FINISHED_ON_DEV (matching Indexing Finished on LRM Dev)
4: "btn-info", // REINDEXING_READY_FOR_CURATION (matching Ready for Curation)
5: "btn-success", // REINDEXING_CURATION_IN_PROGRESS (matching Curation in Progress)
6: "btn-primary", // REINDEXING_CURATED (matching Curated)
7: "btn-primary" // REINDEXING_INDEXED_ON_PROD (matching Prod: Perfect)
};

$button = $(`#reindexing-status-button-${collection_id}`);

Expand Down

0 comments on commit fcc70eb

Please sign in to comment.