Correct banner detection
This commit is contained in:
parent
d8283bbf83
commit
b168eb2fc2
|
|
@ -39,7 +39,7 @@ module DockerManager
|
|||
|
||||
def latest
|
||||
repo = DockerManager::GitRepo.new(params[:path])
|
||||
repo.update!
|
||||
repo.update! if Rails.env == 'production'
|
||||
|
||||
render json: {latest: {version: repo.latest_origin_commit,
|
||||
commits_behind: repo.commits_behind,
|
||||
|
|
|
|||
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
(cd manager-client && ember serve --proxy "http://localhost:3000")
|
||||
|
||||
|
|
@ -13,7 +13,7 @@ export default Ember.ObjectController.extend({
|
|||
appendBannerHtml: function(html){
|
||||
var banner = this.get("banner") || [];
|
||||
if(banner.indexOf(html) === -1){
|
||||
banner.push(html);
|
||||
banner.pushObject(html);
|
||||
}
|
||||
this.set("banner", banner);
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue