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;
|
LibSettingsDialog.propTypes = propTypes;
|
||||||
|
|
||||||
export default LibSettingsDialog;
|
export default LibSettingsDialog;
|
||||||
|
|
||||||
|
export { TAB };
|
||||||
|
@@ -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>
|
||||||
|
@@ -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}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
Reference in New Issue
Block a user