mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 21:49:37 -04:00
Fix unnecessary call to organisation API endpoint
We’re caching the organisation name, but still talking to the API to see if the organisation exists. `Service().organisation_id` only goes to the JSON for the service. `Service().organisation` makes a separate API call. We only need the former to know if a service belongs to an organisation.
This commit is contained in:
@@ -296,7 +296,7 @@
|
||||
|
||||
{% call row() %}
|
||||
{{ text_field('Live')}}
|
||||
{% if current_service.trial_mode and not current_service.organisation %}
|
||||
{% if current_service.trial_mode and not current_service.organisation_id %}
|
||||
{{ text_field('No (organisation must be set first)') }}
|
||||
{{ text_field('') }}
|
||||
{% else %}
|
||||
|
||||
Reference in New Issue
Block a user