Correct banner detection

This commit is contained in:
Sam 2014-12-23 15:01:59 +11:00
parent d8283bbf83
commit b168eb2fc2
3 changed files with 6 additions and 2 deletions

View File

@ -39,7 +39,7 @@ module DockerManager
def latest def latest
repo = DockerManager::GitRepo.new(params[:path]) repo = DockerManager::GitRepo.new(params[:path])
repo.update! repo.update! if Rails.env == 'production'
render json: {latest: {version: repo.latest_origin_commit, render json: {latest: {version: repo.latest_origin_commit,
commits_behind: repo.commits_behind, commits_behind: repo.commits_behind,

4
dev_server.js Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
(cd manager-client && ember serve --proxy "http://localhost:3000")

View File

@ -13,7 +13,7 @@ export default Ember.ObjectController.extend({
appendBannerHtml: function(html){ appendBannerHtml: function(html){
var banner = this.get("banner") || []; var banner = this.get("banner") || [];
if(banner.indexOf(html) === -1){ if(banner.indexOf(html) === -1){
banner.push(html); banner.pushObject(html);
} }
this.set("banner", banner); this.set("banner", banner);
}, },