Cleanup hide_requests

This commit is contained in:
zandercymatics 2024-11-20 09:45:35 -07:00
parent 01e6b13662
commit 9e35575001
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -317,15 +317,7 @@ class DomainRequestWizard(DomainRequestWizardPermissionView, TemplateView):
# Clear context so the prop getter won't create a request here. # Clear context so the prop getter won't create a request here.
# Creating a request will be handled in the post method for the # Creating a request will be handled in the post method for the
# intro page. # intro page.
return render( return render(request, "domain_request_intro.html")
request,
"domain_request_intro.html",
{
"hide_requests": False,
"hide_domains": False,
"hide_members": False,
},
)
else: else:
return self.goto(self.steps.first) return self.goto(self.steps.first)
@ -487,12 +479,7 @@ class DomainRequestWizard(DomainRequestWizardPermissionView, TemplateView):
"user": self.request.user, "user": self.request.user,
"requested_domain__name": requested_domain_name, "requested_domain__name": requested_domain_name,
} }
# Hides the requests and domains buttons in the navbar
context["hide_requests"] = self.is_portfolio
context["hide_domains"] = self.is_portfolio
context["domain_request_id"] = self.domain_request.id context["domain_request_id"] = self.domain_request.id
return context return context
def get_step_list(self) -> list: def get_step_list(self) -> list: