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:
@@ -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>
|
||||
|
@@ -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>
|
||||
);
|
||||
|
Reference in New Issue
Block a user