FIX: hide add section button (#20208)

Custom section feature is currently hidden behind feature flag - https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/components/sidebar/user/sections.hbs#L3

In last PR, add section button was moved to footer. It should be hidden as well.
This commit is contained in:
Krzysztof Kotlarek
2023-02-08 13:08:05 +11:00
committed by GitHub
parent 6e1f3e0023
commit 7332873051
3 changed files with 10 additions and 6 deletions

View File

@@ -2,6 +2,7 @@
class AddLimitsToSidebarSectionsAndSidebarUrls < ActiveRecord::Migration[7.0]
def change
execute "UPDATE sidebar_urls SET icon = 'link' WHERE icon IS NULL"
change_column :sidebar_sections, :title, :string, limit: 30, null: false
change_column :sidebar_urls, :icon, :string, limit: 40, null: false
change_column :sidebar_urls, :name, :string, limit: 80, null: false