diff --git a/vendor/built_in_modules/dictionary/app/helpers/panel/dictionary/back_end/dictionary_vocab_categorys_helper.rb b/vendor/built_in_modules/dictionary/app/helpers/panel/dictionary/back_end/dictionary_vocab_categorys_helper.rb index e7d9bddd2..d8db3d023 100644 --- a/vendor/built_in_modules/dictionary/app/helpers/panel/dictionary/back_end/dictionary_vocab_categorys_helper.rb +++ b/vendor/built_in_modules/dictionary/app/helpers/panel/dictionary/back_end/dictionary_vocab_categorys_helper.rb @@ -12,4 +12,9 @@ include ActionView::Helpers::UrlHelper link_to t(:category_auth),admin_object_auth_ob_auth_path(oa) end + def show_toggle_dictionary_btn(dictionary_vocab_category) + trans_path = "dictionary.backend" + return dictionary_vocab_category.disable ? t("#{trans_path}.close") : t("#{trans_path}.open") + end + end \ No newline at end of file diff --git a/vendor/built_in_modules/dictionary/app/views/panel/dictionary/back_end/dictionary_vocab_categorys/_dictionary_vocab_category.html.erb b/vendor/built_in_modules/dictionary/app/views/panel/dictionary/back_end/dictionary_vocab_categorys/_dictionary_vocab_category.html.erb index b2262689b..a5a7d84c1 100644 --- a/vendor/built_in_modules/dictionary/app/views/panel/dictionary/back_end/dictionary_vocab_categorys/_dictionary_vocab_category.html.erb +++ b/vendor/built_in_modules/dictionary/app/views/panel/dictionary/back_end/dictionary_vocab_categorys/_dictionary_vocab_category.html.erb @@ -5,6 +5,7 @@