Skip to content

Commit

Permalink
Set View button to False
Browse files Browse the repository at this point in the history
  • Loading branch information
Shruti1229 committed Jul 27, 2023
1 parent 2105361 commit ed25a20
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions backend/organization/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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":
Expand Down
6 changes: 3 additions & 3 deletions backend/project/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit ed25a20

Please sign in to comment.