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:
@@ -155,3 +155,5 @@ const LibSettingsDialog = ({ repoID, currentRepoInfo, toggleDialog, tab }) => {
|
||||
LibSettingsDialog.propTypes = propTypes;
|
||||
|
||||
export default LibSettingsDialog;
|
||||
|
||||
export { TAB };
|
||||
|
@@ -4,7 +4,7 @@ import { gettext, siteRoot } from '../../../utils/constants';
|
||||
import { Utils } from '../../../utils/utils';
|
||||
import TreeSection from '../../tree-section';
|
||||
import TrashDialog from '../../dialog/trash-dialog';
|
||||
import LibSettingsDialog from '../../dialog/lib-settings';
|
||||
import LibSettingsDialog, { TAB } from '../../dialog/lib-settings';
|
||||
|
||||
import './index.css';
|
||||
|
||||
@@ -58,6 +58,7 @@ const DirOthers = ({ userPerm, repoID, currentRepoInfo }) => {
|
||||
repoID={repoID}
|
||||
currentRepoInfo={currentRepoInfo}
|
||||
toggleDialog={toggleSettingsDialog}
|
||||
tab={TAB.HISTORY_SETTINGS}
|
||||
/>
|
||||
)}
|
||||
</TreeSection>
|
||||
|
@@ -4,7 +4,7 @@ import { gettext } from '../../utils/constants';
|
||||
import TreeSection from '../tree-section';
|
||||
import { MetadataTreeView, useMetadata } from '../../metadata';
|
||||
import ExtensionPrompts from './extension-prompts';
|
||||
import LibSettingsDialog from '../dialog/lib-settings';
|
||||
import LibSettingsDialog, { TAB } from '../dialog/lib-settings';
|
||||
import { useMetadataStatus } from '../../hooks';
|
||||
|
||||
const DirViews = ({ userPerm, repoID, currentPath, currentRepoInfo }) => {
|
||||
@@ -41,7 +41,7 @@ const DirViews = ({ userPerm, repoID, currentPath, currentRepoInfo }) => {
|
||||
<LibSettingsDialog
|
||||
repoID={repoID}
|
||||
currentRepoInfo={currentRepoInfo}
|
||||
tab="extendedPropertiesSetting"
|
||||
tab={TAB.EXTENDED_PROPERTIES_SETTINGS}
|
||||
toggleDialog={toggleSettingsDialog}
|
||||
/>
|
||||
)}
|
||||
|
Reference in New Issue
Block a user