mirror of
https://github.com/harness/drone.git
synced 2025-05-11 22:50:11 +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: (
|
||||
<a
|
||||
onClick={() => {
|
||||
history.push(currentUserProfileURL)
|
||||
history.push(standalone ? routes.toCODEUserProfile() : currentUserProfileURL)
|
||||
}}>
|
||||
here
|
||||
</a>
|
||||
@ -142,7 +142,7 @@ export const EmptyRepositoryInfo: React.FC<Pick<GitInfoProps, 'repoMetadata'>> =
|
||||
source={getString('repoEmptyMarkdownExisting')
|
||||
.replace(/REPO_URL/g, repoMetadata.git_url || '')
|
||||
.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 || '')}
|
||||
/>
|
||||
</Container>
|
||||
|
Loading…
Reference in New Issue
Block a user