diff options
author | yp05327 <576951401@qq.com> | 2023-08-29 21:15:19 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-29 12:15:19 +0000 |
commit | 008f5d8cf1c40b96f43b19ecf48240fc4b86e3f0 (patch) | |
tree | b64b334767c396578bc6278bd36772d7a955e787 /web_src/js | |
parent | ad3cbbc3b1ce80c22d439848c41a926280521344 (diff) | |
download | gitea-008f5d8cf1c40b96f43b19ecf48240fc4b86e3f0.tar.gz gitea-008f5d8cf1c40b96f43b19ecf48240fc4b86e3f0.zip |
Add default label in branch select list (#26697)
Diffstat (limited to 'web_src/js')
-rw-r--r-- | web_src/js/components/RepoBranchTagSelector.vue | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/web_src/js/components/RepoBranchTagSelector.vue b/web_src/js/components/RepoBranchTagSelector.vue index 07fbd634fd..1889bfb222 100644 --- a/web_src/js/components/RepoBranchTagSelector.vue +++ b/web_src/js/components/RepoBranchTagSelector.vue @@ -30,6 +30,9 @@ <div class="loading-indicator is-loading" v-if="isLoading"/> <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"> {{ item.name }} + <div class="ui label" v-if="item.name===defaultBranch && mode === 'branches'"> + {{ textDefaultBranchLabel }} + </div> <a v-show="enableFeed && mode === 'branches'" role="button" class="rss-icon ui compact right" :href="rssURLPrefix + item.url" target="_blank" @click.stop> <!-- creating a lot of Vue component is pretty slow, so we use a static SVG here --> <svg width="14" height="14" class="svg octicon-rss"><use href="#svg-symbol-octicon-rss"/></svg> |