1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-17 15:53:28 +00:00

fix library setting dialog highlight tab (#7104)

This commit is contained in:
Michael An
2024-11-26 16:19:27 +08:00
committed by GitHub
parent 6543dd3bb8
commit 90b668258d
3 changed files with 6 additions and 3 deletions

View File

@@ -155,3 +155,5 @@ const LibSettingsDialog = ({ repoID, currentRepoInfo, toggleDialog, tab }) => {
LibSettingsDialog.propTypes = propTypes; LibSettingsDialog.propTypes = propTypes;
export default LibSettingsDialog; export default LibSettingsDialog;
export { TAB };

View File

@@ -4,7 +4,7 @@ import { gettext, siteRoot } from '../../../utils/constants';
import { Utils } from '../../../utils/utils'; import { Utils } from '../../../utils/utils';
import TreeSection from '../../tree-section'; import TreeSection from '../../tree-section';
import TrashDialog from '../../dialog/trash-dialog'; import TrashDialog from '../../dialog/trash-dialog';
import LibSettingsDialog from '../../dialog/lib-settings'; import LibSettingsDialog, { TAB } from '../../dialog/lib-settings';
import './index.css'; import './index.css';
@@ -58,6 +58,7 @@ const DirOthers = ({ userPerm, repoID, currentRepoInfo }) => {
repoID={repoID} repoID={repoID}
currentRepoInfo={currentRepoInfo} currentRepoInfo={currentRepoInfo}
toggleDialog={toggleSettingsDialog} toggleDialog={toggleSettingsDialog}
tab={TAB.HISTORY_SETTINGS}
/> />
)} )}
</TreeSection> </TreeSection>

View File

@@ -4,7 +4,7 @@ import { gettext } from '../../utils/constants';
import TreeSection from '../tree-section'; import TreeSection from '../tree-section';
import { MetadataTreeView, useMetadata } from '../../metadata'; import { MetadataTreeView, useMetadata } from '../../metadata';
import ExtensionPrompts from './extension-prompts'; import ExtensionPrompts from './extension-prompts';
import LibSettingsDialog from '../dialog/lib-settings'; import LibSettingsDialog, { TAB } from '../dialog/lib-settings';
import { useMetadataStatus } from '../../hooks'; import { useMetadataStatus } from '../../hooks';
const DirViews = ({ userPerm, repoID, currentPath, currentRepoInfo }) => { const DirViews = ({ userPerm, repoID, currentPath, currentRepoInfo }) => {
@@ -41,7 +41,7 @@ const DirViews = ({ userPerm, repoID, currentPath, currentRepoInfo }) => {
<LibSettingsDialog <LibSettingsDialog
repoID={repoID} repoID={repoID}
currentRepoInfo={currentRepoInfo} currentRepoInfo={currentRepoInfo}
tab="extendedPropertiesSetting" tab={TAB.EXTENDED_PROPERTIES_SETTINGS}
toggleDialog={toggleSettingsDialog} toggleDialog={toggleSettingsDialog}
/> />
)} )}