You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<inputname="confirm_project_name" id="confirm_project_name" class="form-control" type="text" placeholder="Enter project name to confirm" {{ "disabled" if not request.has_permission(Permissions.AdminProjectsDelete) }} autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
232
-
</div>
214
+
{% set project_malware_reports = report.related.observations | selectattr("kind", "equalto", "is_malware") | list %}
215
+
{% set missing_urls = project_malware_reports | selectattr("additional.helpscout_conversation_url", "undefined") | list %}
216
+
{% if missing_urls %}
217
+
<divclass="alert alert-warning">
218
+
<iclass="fa fa-exclamation-triangle"></i>
219
+
<strong>Action Blocked:</strong> {{ missing_urls | length }} observation(s) for this project are missing HelpScout conversation URLs.
220
+
Please add HelpScout conversation URLs to all observations before removing as malware.
<inputname="confirm_project_name" id="confirm_project_name" class="form-control" type="text" placeholder="Enter project name to confirm" {{ "disabled" if not request.has_permission(Permissions.AdminProjectsDelete) }} autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
<inputname="confirm_project_name" id="confirm_project_name" class="form-control" type="text" placeholder="Enter project name to confirm" {{ "disabled" if not request.has_permission(Permissions.AdminProjectsDelete) }} autocomplete="off" autocorrect="off" autocapitalize="off">
265
-
</div>
249
+
{% set missing_urls = malware_reports | selectattr("additional.helpscout_conversation_url", "undefined") | list %}
<inputname="confirm_project_name" id="confirm_project_name" class="form-control" type="text" placeholder="Enter project name to confirm" {{ "disabled" if not request.has_permission(Permissions.AdminProjectsDelete) }} autocomplete="off" autocorrect="off" autocapitalize="off">
0 commit comments