FEATURE: Add toggle topic visibility button in popup menu.

This commit is contained in:
Guo Xiang Tan
2016-07-27 17:50:13 +08:00
parent 16a383ea1e
commit 36ddb1787e
7 changed files with 107 additions and 11 deletions

View File

@ -93,10 +93,13 @@ class TopicCreator
end
def setup_topic_params
@opts[:visible] = true if @opts[:visible].nil?
topic_params = {
title: @opts[:title],
user_id: @user.id,
last_post_user_id: @user.id
last_post_user_id: @user.id,
visible: @opts[:visible]
}
[:subtype, :archetype, :meta_data, :import_mode].each do |key|