mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-22 10:46:06 +02:00
Cleanup hide_requests
This commit is contained in:
parent
01e6b13662
commit
9e35575001
1 changed files with 1 additions and 14 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue