
After recent refactorings status images popup started to fetch branches info whenever a repo page was opened, resulting in additional HTTP requests. Furthermore, because of a way we load branches, it could result in builds view displaying very old builds, because in API V2 we essentially download last build for each branch for branches request. This commit fixes the situation in 2 ways: 1. We wait with downloading branhes till the popup is open 2. We use a V3 requests to download branches and we don't put that data into the store
26 lines
563 B
Handlebars
26 lines
563 B
Handlebars
<a href="#" class="close" {{action "close"}}></a>
|
|
<p>
|
|
<label>Branch:</label>
|
|
{{#if branches.isLoaded}}
|
|
{{#x-select value=branch}}
|
|
{{#each branches as |branch|}}
|
|
{{#x-option value=branch}}{{branch}}{{/x-option}}
|
|
{{/each}}
|
|
{{/x-select}}
|
|
{{else}}
|
|
{{loading-indicator}}
|
|
{{/if}}
|
|
</p>
|
|
|
|
<p>
|
|
<label>
|
|
{{#x-select value=format}}
|
|
{{#each formats as |format|}}
|
|
{{#x-option value=format}}{{format}}{{/x-option}}
|
|
{{/each}}
|
|
{{/x-select}}
|
|
|
|
</label>
|
|
{{status-image-input value=statusString class="url" rows=3}}
|
|
</p>
|