Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

fix for #37 #38

Merged
merged 1 commit into from
Jul 25, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/front/src/app/upsertproject/upsertproject.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h2>{{title}}</h2>
<input class="form-control" type="url" ng-model="project.repoUrl" required />
<span ng-show="projectForm.project.repoUrl.$touched && projectForm.project.repoUrl.$invalid">The TC Repo URL is required.</span>
<br />
<div class="hide">
<div class="hide" *ng-if="true">
<label class="form-label">Rocket.chat Webhook URL:</label>
<input class="form-control" type="url" ng-model="project.rocketChatWebhook"/>
<span ng-show="projectForm.project.rocketChatWebhook.$touched && projectForm.project.rocketChatWebhook.$invalid">The Rocket Chat Webhook is required.</span>
Expand All @@ -52,7 +52,7 @@ <h2>{{title}}</h2>
ng-model="project.archived" ng-true-value="'true'" ng-false-value="'false'" />
<br/>

<button class="with-button btn btn-sm btn-info" ng-click="projectForm.$valid && save()">
<button type="submit" class="with-button btn btn-sm btn-info" ng-click="projectForm.$valid && save()">
<strong>
Save
</strong>
Expand Down
6 changes: 4 additions & 2 deletions src/services/ProjectService.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ async function createLabel(body, currentUserTopcoderHandle) {
let index = 1;
const repoName = results[results.length - index];
index += 1;
const repoOwner = results[results.length - index];
const excludePart = 3;
const repoOwner = _(results).slice(excludePart, results.length - 1).join('/');
if (provider === 'github') {
try {
const client = gitHubApi.client(copilot.accessToken);
Expand Down Expand Up @@ -212,7 +213,8 @@ async function createHook(body, currentUserTopcoderHandle) {
let index = 1;
const repoName = results[results.length - index];
index += 1;
const repoOwner = results[results.length - index];
const excludePart = 3;
const repoOwner = _(results).slice(excludePart, results.length - 1).join('/');
if (provider === 'github') {
try {
const client = gitHubApi.client(copilot.accessToken);
Expand Down