Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 09:20:29 +01:00
Minor fixes
Dieser Commit ist enthalten in:
Ursprung
bb0f3dfb3e
Commit
bc5a504dfd
2 geänderte Dateien mit 6 neuen und 4 gelöschten Zeilen
|
@ -162,8 +162,8 @@ en:
|
||||||
return_to_site: "Return to {{siteName}}"
|
return_to_site: "Return to {{siteName}}"
|
||||||
|
|
||||||
wizard_composer:
|
wizard_composer:
|
||||||
show_preview: "Preview Your Post"
|
show_preview: "Preview Post"
|
||||||
hide_preview: "Hide Preview"
|
hide_preview: "Edit Post"
|
||||||
quote_post_title: "Quote whole post"
|
quote_post_title: "Quote whole post"
|
||||||
bold_label: "B"
|
bold_label: "B"
|
||||||
bold_title: "Strong"
|
bold_title: "Strong"
|
||||||
|
|
|
@ -86,11 +86,13 @@ after_initialize do
|
||||||
module InvitesControllerCustomWizard
|
module InvitesControllerCustomWizard
|
||||||
def path(url)
|
def path(url)
|
||||||
if Wizard.user_requires_completion?(@user)
|
if Wizard.user_requires_completion?(@user)
|
||||||
wizard_path = $redis.get('custom_wizard_redirect')
|
wizard_id = $redis.get('custom_wizard_redirect')
|
||||||
|
|
||||||
unless url === '/'
|
unless url === '/'
|
||||||
CustomWizard::Wizard.set_redirect(@user, wizard_id, url)
|
CustomWizard::Wizard.set_redirect(@user, wizard_id, url)
|
||||||
end
|
end
|
||||||
url = "/w/#{wizard_path}"
|
|
||||||
|
url = "/w/#{wizard_id}"
|
||||||
end
|
end
|
||||||
super(url)
|
super(url)
|
||||||
end
|
end
|
||||||
|
|
Laden …
In neuem Issue referenzieren