diff --git a/app/components/branch-row.coffee b/app/components/branch-row.coffee index 329de28a..788d40fc 100644 --- a/app/components/branch-row.coffee +++ b/app/components/branch-row.coffee @@ -52,16 +52,14 @@ BranchRowComponent = Ember.Component.extend triggerBuild: (-> apiEndpoint = config.apiEndpoint repoId = @get('build.repository.id') - options = { type: 'POST' } if @get('auth.signedIn') options.headers = { Authorization: "token #{@auth.token()}" } - $.ajax("#{apiEndpoint}/v3/repo/#{repoId}/requests", options).then (response) -> console.log(response); - + console.log('Build triggered'); ) actions: diff --git a/app/controllers/branches.coffee b/app/controllers/branches.coffee index 2391ddb3..9a80c996 100644 --- a/app/controllers/branches.coffee +++ b/app/controllers/branches.coffee @@ -14,6 +14,7 @@ BranchesController = Ember.Controller.extend activeBranches: (-> repos = @get('model') repos = repos.filter (item, index) -> + console.log(item) item if item.exists_on_github == true && item.repository.default_branch.name != undefined .sort (a, b) -> # if a.last_build && b.last_build diff --git a/app/styles/app/layouts/branches.sass b/app/styles/app/layouts/branches.sass index a5c02509..f4ffae8a 100644 --- a/app/styles/app/layouts/branches.sass +++ b/app/styles/app/layouts/branches.sass @@ -123,7 +123,7 @@ &:before bottom: -6px &:after - bottom: -4px; + bottom: -4px background-color: $white .dropup-trigger:hover ~ &, .dropup-trigger:hover &, @@ -222,3 +222,29 @@ 100% transform: rotateZ(360deg) +.is-relative + position: relative + +.nobuilds-tigger + position: absolute + top: 0 + left: 0 + right: 0 + bottom: 0 + height: 2em + width: 11em + margin: auto + padding: 0.2em .5em + line-height: 1.5 + text-align: center + border: 1px solid #E4E6E6 + border-radius: 2px + background-color: #fff + &:hover + background: #A6ADAD + color: white + .icon-trigger svg path + fill: #fff + .icon-trigger + height: 1.4em !important + diff --git a/app/templates/components/branch-row.hbs b/app/templates/components/branch-row.hbs index abd4cf93..593e94cc 100644 --- a/app/templates/components/branch-row.hbs +++ b/app/templates/components/branch-row.hbs @@ -118,54 +118,56 @@