Commit 201dd61b authored by Vladimir Shushlin's avatar Vladimir Shushlin

Fix pipeline failures after using presenter

parent 804747cf
...@@ -27,7 +27,7 @@ class Projects::PagesDomainsController < Projects::ApplicationController ...@@ -27,7 +27,7 @@ class Projects::PagesDomainsController < Projects::ApplicationController
end end
def retry_auto_ssl def retry_auto_ssl
PagesDomains::RetryAcmeOrderService.new(@domain).execute PagesDomains::RetryAcmeOrderService.new(@domain.pages_domain).execute
redirect_to project_pages_domain_path(@project, @domain) redirect_to project_pages_domain_path(@project, @domain)
end end
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
= _('Certificate') = _('Certificate')
.d-flex.justify-content-between.align-items-center.p-3 .d-flex.justify-content-between.align-items-center.p-3
%span %span
= @domain.subject || _('missing') = @domain.pages_domain.subject || _('missing')
= link_to _('Remove'), = link_to _('Remove'),
clean_certificate_project_pages_domain_path(@project, @domain), clean_certificate_project_pages_domain_path(@project, @domain),
data: { confirm: _('Are you sure?') }, data: { confirm: _('Are you sure?') },
......
...@@ -7,7 +7,7 @@ describe 'projects/pages_domains/show' do ...@@ -7,7 +7,7 @@ describe 'projects/pages_domains/show' do
before do before do
assign(:project, project) assign(:project, project)
assign(:domain, domain) assign(:domain, Gitlab::View::Presenter::Factory.new(domain).fabricate!)
stub_pages_setting(external_https: true) stub_pages_setting(external_https: true)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment