Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-26 02:50:28 +01:00
FIX: no access locale and svg icon
Dieser Commit ist enthalten in:
Ursprung
be204c1cb6
Commit
6dfd9e36c2
2 geänderte Dateien mit 2 neuen und 3 gelöschten Zeilen
|
@ -2,6 +2,6 @@
|
|||
<div class="no-access-gutter">
|
||||
<button class='wizard-btn primary return-to-site' {{action 'skip'}}>
|
||||
{{wizard-i18n 'wizard.return_to_site' siteName=siteName}}
|
||||
{{d-icon "sign-out"}}
|
||||
{{d-icon "sign-out-alt"}}
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
@ -4,8 +4,7 @@ module ExtraLocalesControllerCustomWizard
|
|||
return false unless bundle =~ /wizard/ && request.referer =~ /\/w\//
|
||||
path = URI(request.referer).path
|
||||
wizard_id = path.split('/w/').last
|
||||
wizard = CustomWizard::Wizard.create(wizard_id.underscore, current_user)
|
||||
wizard && wizard.can_access?
|
||||
CustomWizard::Template.exists?(wizard_id.underscore)
|
||||
end
|
||||
end
|
||||
end
|
Laden …
In neuem Issue referenzieren