mirror of
https://github.com/harness/drone.git
synced 2025-05-13 15:40:12 +08:00
feat: [code-741]: fix token generation links (#316)
This commit is contained in:
parent
ef1f04eb5b
commit
225ca6332a
@ -115,7 +115,7 @@ export const EmptyRepositoryInfo: React.FC<Pick<GitInfoProps, 'repoMetadata'>> =
|
|||||||
URL: (
|
URL: (
|
||||||
<a
|
<a
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
history.push(currentUserProfileURL)
|
history.push(standalone ? routes.toCODEUserProfile() : currentUserProfileURL)
|
||||||
}}>
|
}}>
|
||||||
here
|
here
|
||||||
</a>
|
</a>
|
||||||
@ -142,7 +142,7 @@ export const EmptyRepositoryInfo: React.FC<Pick<GitInfoProps, 'repoMetadata'>> =
|
|||||||
source={getString('repoEmptyMarkdownExisting')
|
source={getString('repoEmptyMarkdownExisting')
|
||||||
.replace(/REPO_URL/g, repoMetadata.git_url || '')
|
.replace(/REPO_URL/g, repoMetadata.git_url || '')
|
||||||
.replace(/REPO_NAME/g, repoMetadata.uid || '')
|
.replace(/REPO_NAME/g, repoMetadata.uid || '')
|
||||||
.replace(/CREATE_API_TOKEN_URL/g, currentUserProfileURL || '')
|
.replace(/CREATE_API_TOKEN_URL/g, standalone ? routes.toCODEUserProfile() : currentUserProfileURL || '')
|
||||||
.replace(/DEFAULT_BRANCH/g, repoMetadata.default_branch || '')}
|
.replace(/DEFAULT_BRANCH/g, repoMetadata.default_branch || '')}
|
||||||
/>
|
/>
|
||||||
</Container>
|
</Container>
|
||||||
|
Loading…
Reference in New Issue
Block a user