mirror of
https://github.com/outline/outline.git
synced 2026-06-30 03:34:24 +03:00
c02a33a74c
* Address PR feedback: Move commenting logic to Collection model - Update openDocumentComments action to use collection.canCreateComment - Update AuthenticatedLayout to check collection-level commenting setting - Update DocumentMeta to use collection commenting preference - Add commenting field to CollectionForm with proper UI - Maintain backward compatibility with team-level preferences * Applied automatic fixes * Disable comment creation UI when collection commenting is disabled - Update Editor component to use collection-level commenting setting - Pass onCreateCommentMark as undefined when commenting is disabled - This removes the shortcut and toolbar icon for comment creation - Maintains backward compatibility with team-level preferences * Fix TypeScript error in Editor component - Fix props destructuring to avoid variable shadowing - Ensure all required props are properly destructured - Maintain correct property order from original implementation * Fix TypeScript error: add missing activeCollectionId parameter - Add activeCollectionId to import document action perform function - This parameter was being used but not declared in the function signature - Fixes TS2304 error: Cannot find name 'activeCollectionId' * fix form * docs --------- Co-authored-by: codegen-sh[bot] <131295404+codegen-sh[bot]@users.noreply.github.com> Co-authored-by: Tom Moor <tom@getoutline.com>
18 lines
403 B
JavaScript
18 lines
403 B
JavaScript
'use strict';
|
|
|
|
/** @type {import('sequelize-cli').Migration} */
|
|
module.exports = {
|
|
async up (queryInterface, Sequelize) {
|
|
await queryInterface.addColumn('collections', 'commenting', {
|
|
type: Sequelize.BOOLEAN,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
});
|
|
},
|
|
|
|
async down (queryInterface, Sequelize) {
|
|
await queryInterface.removeColumn('collections', 'commenting');
|
|
}
|
|
};
|
|
|