1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-17 07:41:26 +00:00

modify repo tag color (#3006)

* modify repo tag color

* add getDrakColor function
This commit is contained in:
王健辉
2019-02-27 14:14:28 +08:00
committed by Daniel Pan
parent 344eca259a
commit abd5718931
13 changed files with 63 additions and 13 deletions

View File

@@ -14,6 +14,7 @@ const propTypes = {
repoName: PropTypes.string.isRequired,
permission: PropTypes.bool.isRequired,
currentPath: PropTypes.string.isRequired,
updateUsedRepoTags: PropTypes.func.isRequired,
};
class DirTool extends React.Component {
@@ -129,6 +130,7 @@ class DirTool extends React.Component {
currentTag={this.state.currentTag}
onClose={this.onCloseRepoTagDialog}
toggleCancel={this.onListTaggedFileToggle}
updateUsedRepoTags={this.props.updateUsedRepoTags}
/>
)}
</Modal>

View File

@@ -12,6 +12,7 @@ const propTypes = {
onTabNavClick: PropTypes.func,
pathPrefix: PropTypes.array,
isViewFile: PropTypes.bool,
updateUsedRepoTags: PropTypes.func.isRequired,
};
class CurDirPath extends React.Component {
@@ -33,6 +34,7 @@ class CurDirPath extends React.Component {
repoName={this.props.repoName}
permission={this.props.permission}
currentPath={this.props.currentPath}
updateUsedRepoTags={this.props.updateUsedRepoTags}
/>
</Fragment>
);