-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Confirm the deletion details, #10185, #10186 #10194
Conversation
except ValidationError: | ||
return { | ||
"success": False, | ||
"data": {"title": _("Invalid Search Url"), "message": "Please, enter a valid search url "} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you make the message localizable as well?
except TypeError: | ||
return { | ||
"success": False, | ||
"data": {"title": _("Invalid Search Url"), "message": "Please, enter a valid search url "} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Message also needs to be translatable here too.
for resourceid in smaple_resource_ids: | ||
resource = Resource.objects.get(pk=resourceid) | ||
resource.tiles = list(TileModel.objects.filter(resourceinstance=resourceid).filter(nodegroup_id=nodegroup_id)) | ||
lbg = LabelBasedGraph.from_resource( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to use LabelBasedGraphV2 here? The LabelBasedGraph may be replaced with V2, so it's best to avoid using it.
arches/app/templates/javascript.htm
Outdated
delete-resource-count='(resource) => {return {% trans "${resource} resources will be deleted" as deleteResourceCount %} `{{ deleteResourceCount|escapejs }}` }' | ||
delete-tiles='{% trans "Delete Tiles" as deleteTiles %} "{{ deleteTiles|escapejs }}"' | ||
delete-resources='{% trans "Delete Resources" as deleteResources %} "{{ deleteResources|escapejs }}"' | ||
to-be-deleted-tiles='{% trans "To Be Deleted Tiles" as toBeDeletedTiles %} "{{ toBeDeletedTiles|escapejs }}"' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable names are okay, but could the text be changed to "Tiles to Be Deleted"?
Types of changes
Description of Change
Issues Solved
#10185
#10186
Checklist
Ticket Background
Further comments