From ed25a2011f11404c3e4fd5cd06a868f22e926bf5 Mon Sep 17 00:00:00 2001 From: Shruti1229 Date: Thu, 27 Jul 2023 14:12:30 +0530 Subject: [PATCH] Set View button to False --- backend/organization/views.py | 6 +++--- backend/project/views.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/backend/organization/views.py b/backend/organization/views.py index 2efd0b7a..57936607 100644 --- a/backend/organization/views.py +++ b/backend/organization/views.py @@ -415,7 +415,7 @@ def list_org_tasks(self, request, pk=None, *args, **kwargs): task["status"] == "SELECTED_SOURCE" and task["task_type"] != "VOICEOVER_EDIT" ): - buttons["View"] = True + buttons["View"] = False task["buttons"] = buttons else: projects = ( @@ -514,7 +514,7 @@ def list_org_tasks(self, request, pk=None, *args, **kwargs): task["status"] == "SELECTED_SOURCE" and task["task_type"] != "VOICEOVER_EDIT" ): - buttons["View"] = True + buttons["View"] = False task["buttons"] = buttons tasks_list.append(task) else: @@ -565,7 +565,7 @@ def list_org_tasks(self, request, pk=None, *args, **kwargs): task["status"] == "SELECTED_SOURCE" and task["task_type"] != "VOICEOVER_EDIT" ): - buttons["View"] = True + buttons["View"] = False if task["status"] == "FAILED": buttons["Info"] = True if task["task_type"] == "VOICEOVER_EDIT": diff --git a/backend/project/views.py b/backend/project/views.py index 5063a19b..d8067577 100644 --- a/backend/project/views.py +++ b/backend/project/views.py @@ -840,7 +840,7 @@ def list_project_tasks(self, request, pk=None, *args, **kwargs): if data["status"] == "SELECTED_SOURCE": if data["task_type"] != "VOICEOVER_EDIT": buttons["Edit"] = True - buttons["View"] = True + # buttons["View"] = True if ( data["task_type"] == "TRANSLATION_EDIT" and data["is_active"] == True @@ -849,7 +849,7 @@ def list_project_tasks(self, request, pk=None, *args, **kwargs): video = Video.objects.get(pk=data["video"]) if video.multiple_speaker == True: buttons["Edit-Speaker"] = True - buttons["View"] = True + # buttons["View"] = False buttons["Edit"] = False data["buttons"] = buttons else: @@ -889,7 +889,7 @@ def list_project_tasks(self, request, pk=None, *args, **kwargs): data["status"] == "SELECTED_SOURCE" and data["task_type"] != "VOICEOVER_EDIT" ): - buttons["View"] = True + buttons["View"] = False data["buttons"] = buttons target_languages_list = list(target_languages) if "-" in target_languages_list: