Skip to content

Commit

Permalink
Show default category indicator to admins
Browse files Browse the repository at this point in the history
Fixes #339
  • Loading branch information
HarveyKandola committed Nov 15, 2019
1 parent f117e91 commit d4edcb8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/database/scripts/sqlserver/db_00005.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* Community edition */

-- Increase column sizes to support rich text data entry
ALTER TABLE dmz_org ALTER COLUMN c_message TYPE NVARCHAR(2000) NOT NULL DEFAULT '';
ALTER TABLE dmz_space ALTER COLUMN c_desc TYPE NVARCHAR(2000) NOT NULL DEFAULT '';
ALTER TABLE dmz_category ALTER COLUMN c_name TYPE NVARCHAR(200) NOT NULL DEFAULT '';
ALTER TABLE dmz_category ADD COLUMN c_default BIT NOT NULL DEFAULT '0';
ALTER TABLE dmz_org ALTER COLUMN c_message NVARCHAR(2000);
ALTER TABLE dmz_space ALTER COLUMN c_desc NVARCHAR(2000);
ALTER TABLE dmz_category ALTER COLUMN c_name NVARCHAR(200);
ALTER TABLE dmz_category ADD c_default BIT NOT NULL DEFAULT '0';
3 changes: 3 additions & 0 deletions gui/app/templates/components/folder/settings-category.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
{{#unless cat.access}}
<p class="color-red-600 bold-500">You have no view permission for this category</p>
{{/unless}}
{{#if cat.isDefault}}
<p class="color-yellow-600 bold-500">Default category for new content</p>
{{/if}}
</div>
<div class="actions">
{{#ui/ui-toolbar dark=false light=true raised=true large=false bordered=true}}
Expand Down

0 comments on commit d4edcb8

Please sign in to comment.