From 67d07e4135c3d2224d8ae016fa6f6a37af73fa41 Mon Sep 17 00:00:00 2001 From: David McDonald Date: Mon, 8 Feb 2021 22:10:05 +0000 Subject: [PATCH] Remove option to put service live if broadcast service Whether a service is live or not will be controlled from the broadcast service settings page once a service is given the broadcast permission --- app/templates/views/service-settings.html | 2 +- tests/app/main/views/test_service_settings.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/templates/views/service-settings.html b/app/templates/views/service-settings.html index b741e2795..564ea3e28 100644 --- a/app/templates/views/service-settings.html +++ b/app/templates/views/service-settings.html @@ -316,6 +316,7 @@ caption_visible=False ) %} + {% if not current_service.has_permission('broadcast') %} {% call row() %} {{ text_field('Live')}} {% if current_service.trial_mode and not current_service.organisation_id %} @@ -327,7 +328,6 @@ {% endif %} {% endcall %} - {% if not current_service.has_permission('broadcast') %} {% call row() %} {{ text_field('Count in list of live services')}} {{ text_field('Yes' if current_service.count_as_live else 'No') }} diff --git a/tests/app/main/views/test_service_settings.py b/tests/app/main/views/test_service_settings.py index 853658f53..f8a254258 100644 --- a/tests/app/main/views/test_service_settings.py +++ b/tests/app/main/views/test_service_settings.py @@ -183,7 +183,6 @@ def test_platform_admin_sees_only_relevant_settings_for_broadcast_service( 'Sign-in method Text message code Change sign-in method', 'Label Value Action', - 'Live Off Change service status', 'Notes None Change the notes for the service', 'Email authentication Off Change your settings for Email authentication', 'Send cell broadcasts On Change your settings for Send cell broadcasts',