This commit is contained in:
Oleksandr Turchyn authored and Oleksandr Turchyn committed 2024-09-23 11:45:07 +03:00
1 parent 3c60fb4ee6
commit e9d728fa4a
132 files changed
+1121 -600

No files matched your search

+2 -1
View File
@@ -79,7 +79,8 @@ class ApplicationController < ActionController::Base
redirect_to setup_index_path unless User.exists?
end
def button_title(title: 'Submit', disabled_with: 'Submitting', title_class: '', icon: nil, icon_disabled: nil)
def button_title(title: I18n.t('submit'), disabled_with: I18n.t('submitting'), title_class: '', icon: nil,
icon_disabled: nil)
render_to_string(partial: 'shared/button_title',
locals: { title:, disabled_with:, title_class:, icon:, icon_disabled: })
end