Compare commits
1 Commits
main
...
fix/repo-o
| Author | SHA1 | Date | |
|---|---|---|---|
| 34bc7b4d0c |
@@ -35,7 +35,9 @@ export class Terminal extends Component<Props, State> {
|
|||||||
const options = new URLSearchParams(decodeURIComponent(window.location.search));
|
const options = new URLSearchParams(decodeURIComponent(window.location.search));
|
||||||
|
|
||||||
this.isDockerType = options.get('type') === 'docker';
|
this.isDockerType = options.get('type') === 'docker';
|
||||||
this.apiBaseUrl = `http://${options.get('domain')}:${options.get('port')}/${options.get('user')}/${options.get('repo')}`;
|
// Use repo_owner if available, otherwise fall back to user
|
||||||
|
const repoOwner = options.get('repo_owner') || options.get('user');
|
||||||
|
this.apiBaseUrl = `http://${options.get('domain')}:${options.get('port')}/${repoOwner}/${options.get('repo')}`;
|
||||||
this.apiParams = new URLSearchParams({
|
this.apiParams = new URLSearchParams({
|
||||||
repo: options.get('repoid') as string,
|
repo: options.get('repoid') as string,
|
||||||
user: options.get('userid') as string,
|
user: options.get('userid') as string,
|
||||||
|
|||||||
Reference in New Issue
Block a user