mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 19:55:43 +00:00
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:
parent
6e1f3e0023
commit
7332873051
@ -3,12 +3,14 @@
|
|||||||
<div class="sidebar-footer-actions">
|
<div class="sidebar-footer-actions">
|
||||||
<PluginOutlet @name="sidebar-footer-actions" />
|
<PluginOutlet @name="sidebar-footer-actions" />
|
||||||
|
|
||||||
<DButton
|
{{#if this.currentUser.custom_sidebar_sections_enabled}}
|
||||||
@icon="plus"
|
<DButton
|
||||||
@action={{action this.addSection}}
|
@icon="plus"
|
||||||
@class="btn-flat add-section"
|
@action={{action this.addSection}}
|
||||||
@title="sidebar.sections.custom.add"
|
@class="btn-flat add-section"
|
||||||
/>
|
@title="sidebar.sections.custom.add"
|
||||||
|
/>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
{{#if
|
{{#if
|
||||||
(or
|
(or
|
||||||
|
@ -7,6 +7,7 @@ import showModal from "discourse/lib/show-modal";
|
|||||||
export default class SidebarFooter extends Component {
|
export default class SidebarFooter extends Component {
|
||||||
@service site;
|
@service site;
|
||||||
@service siteSettings;
|
@service siteSettings;
|
||||||
|
@service currentUser;
|
||||||
|
|
||||||
get capabilities() {
|
get capabilities() {
|
||||||
return getOwner(this).lookup("capabilities:main");
|
return getOwner(this).lookup("capabilities:main");
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
class AddLimitsToSidebarSectionsAndSidebarUrls < ActiveRecord::Migration[7.0]
|
class AddLimitsToSidebarSectionsAndSidebarUrls < ActiveRecord::Migration[7.0]
|
||||||
def change
|
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_sections, :title, :string, limit: 30, null: false
|
||||||
change_column :sidebar_urls, :icon, :string, limit: 40, null: false
|
change_column :sidebar_urls, :icon, :string, limit: 40, null: false
|
||||||
change_column :sidebar_urls, :name, :string, limit: 80, null: false
|
change_column :sidebar_urls, :name, :string, limit: 80, null: false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user