From 93223b7780cb1022c2ad6f5fa9b4b74a06da9609 Mon Sep 17 00:00:00 2001 From: zhouwenxuan Date: Sat, 9 Nov 2024 12:18:31 +0800 Subject: [PATCH] default group by file status, update empty tips --- frontend/src/metadata/constants/view.js | 2 +- frontend/src/metadata/views/kanban/add-board/index.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/metadata/constants/view.js b/frontend/src/metadata/constants/view.js index bc8f9f42459..51bcd26afc2 100644 --- a/frontend/src/metadata/constants/view.js +++ b/frontend/src/metadata/constants/view.js @@ -86,7 +86,7 @@ export const VIEW_DEFAULT_SETTINGS = { [VIEW_TYPE.GALLERY]: {}, [VIEW_TYPE.FACE_RECOGNITION]: {}, [VIEW_TYPE.KANBAN]: { - [KANBAN_SETTINGS_KEYS.GROUP_BY_COLUMN_KEY]: '', + [KANBAN_SETTINGS_KEYS.GROUP_BY_COLUMN_KEY]: PRIVATE_COLUMN_KEY.FILE_STATUS, [KANBAN_SETTINGS_KEYS.TITLE_COLUMN_KEY]: PRIVATE_COLUMN_KEY.FILE_NAME, [KANBAN_SETTINGS_KEYS.HIDE_EMPTY_VALUE]: false, [KANBAN_SETTINGS_KEYS.SHOW_COLUMN_NAME]: false, diff --git a/frontend/src/metadata/views/kanban/add-board/index.js b/frontend/src/metadata/views/kanban/add-board/index.js index 782d667e432..00100b96c48 100644 --- a/frontend/src/metadata/views/kanban/add-board/index.js +++ b/frontend/src/metadata/views/kanban/add-board/index.js @@ -35,9 +35,9 @@ const AddBoard = ({ groupByColumn }) => { return ( <> -
+
- {gettext('Add a new category')} + {gettext('New category')}
{isShowPopover && (