Angus McLeod 7 роки тому
батько
коміт
bc5a504dfd
2 змінених файлів з 6 додано та 4 видалено
  1. 2 2
      config/locales/client.en.yml
  2. 4 2
      plugin.rb

+ 2 - 2
config/locales/client.en.yml

@@ -162,8 +162,8 @@ en:
       return_to_site: "Return to {{siteName}}"
 
     wizard_composer:
-      show_preview: "Preview Your Post"
-      hide_preview: "Hide Preview"
+      show_preview: "Preview Post"
+      hide_preview: "Edit Post"
       quote_post_title: "Quote whole post"
       bold_label: "B"
       bold_title: "Strong"

+ 4 - 2
plugin.rb

@@ -86,11 +86,13 @@ after_initialize do
   module InvitesControllerCustomWizard
     def path(url)
       if Wizard.user_requires_completion?(@user)
-        wizard_path = $redis.get('custom_wizard_redirect')
+        wizard_id = $redis.get('custom_wizard_redirect')
+
         unless url === '/'
           CustomWizard::Wizard.set_redirect(@user, wizard_id, url)
         end
-        url = "/w/#{wizard_path}"
+
+        url = "/w/#{wizard_id}"
       end
       super(url)
     end