-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle retired and deprecated tools in the frontend
- If a tool is depcrecated, show the deprecation message when it is selected - If a tool is retired, hide it and show a message that user must upgrade
- Loading branch information
1 parent
c64cdf6
commit 9ad1f2e
Showing
6 changed files
with
95 additions
and
25 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
controlpanel/api/migrations/0050_alter_tool_deprecated_message.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Generated by Django 5.1.2 on 2024-12-09 15:07 | ||
|
||
# Third-party | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("api", "0049_tool_deprecated_message_tool_is_retired"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="tool", | ||
name="deprecated_message", | ||
field=models.TextField( | ||
blank=True, help_text="If no message is provided, a default message will be used." | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters