Skip to content

Commit a32abd1

Browse files
committed
add comment
1 parent 8f154c2 commit a32abd1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

web_src/js/components/RepoBranchTagSelector.vue

+4-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@
3030
<div class="loading-indicator is-loading" v-if="isLoading"/>
3131
<div v-for="(item, index) in filteredItems" :key="item.name" class="item" :class="{selected: item.selected, active: active === index}" @click="selectItem(item)" :ref="'listItem' + index">
3232
{{ item.name }}
33-
<div class="ui label" v-if="index===0 && mode === 'branches'">{{ textDefault }}</div>
33+
<!-- in backend, we put default branch as the first item, so just check item index is enought here -->
34+
<div class="ui label" v-if="index===0 && mode === 'branches'">
35+
{{ textDefault }}
36+
</div>
3437
<a v-show="enableFeed && mode === 'branches'" role="button" class="rss-icon ui compact right" :href="rssURLPrefix + item.url" target="_blank" @click.stop>
3538
<!-- creating a lot of Vue component is pretty slow, so we use a static SVG here -->
3639
<svg width="14" height="14" class="svg octicon-rss"><use href="#svg-symbol-octicon-rss"/></svg>

0 commit comments

Comments
 (0)