@@ -86,6 +86,8 @@ const sfc = {
8686 textCreateBranch: elRoot .getAttribute (' data-text-create-branch' ),
8787 textCreateRefFrom: elRoot .getAttribute (' data-text-create-ref-from' ),
8888 textNoResults: elRoot .getAttribute (' data-text-no-results' ),
89+ textViewAllBranches: elRoot .getAttribute (' data-text-view-all-branches' ),
90+ textViewAllTags: elRoot .getAttribute (' data-text-view-all-tags' ),
8991
9092 currentRepoDefaultBranch: elRoot .getAttribute (' data-current-repo-default-branch' ),
9193 currentRepoLink: elRoot .getAttribute (' data-current-repo-link' ),
@@ -99,6 +101,7 @@ const sfc = {
99101 showTabBranches: shouldShowTabBranches ,
100102 showTabTags: elRoot .getAttribute (' data-show-tab-tags' ) === ' true' ,
101103 allowCreateNewRef: elRoot .getAttribute (' data-allow-create-new-ref' ) === ' true' ,
104+ showViewAllRefsEntry: elRoot .getAttribute (' data-show-view-all-refs-entry' ) === ' true' ,
102105
103106 enableFeed: elRoot .getAttribute (' data-enable-feed' ) === ' true' ,
104107 };
@@ -281,9 +284,11 @@ export default sfc; // activate IDE's Vue plugin
281284 <div class =" message" v-if =" showNoResults" >
282285 {{ textNoResults }}
283286 </div >
284- <div v-if =" showViewAllBranchsTagsEntry" class =" branch-tag-divider" />
285- <a v-if =" showViewAllBranchsTagsEntry && mode === 'branches'" class =" item" :href =" repoLink + '/branches'" >{{ textViewAllBranches }}</a >
286- <a v-if =" showViewAllBranchsTagsEntry && mode === 'tags'" class =" item" :href =" repoLink + '/tags'" >{{ textViewAllTags }}</a >
287+ <template v-if =" showViewAllRefsEntry " >
288+ <div class =" divider tw-m-0" />
289+ <a v-if =" selectedTab === 'branches'" class =" item" :href =" currentRepoLink + '/branches'" >{{ textViewAllBranches }}</a >
290+ <a v-if =" selectedTab === 'tags'" class =" item" :href =" currentRepoLink + '/tags'" >{{ textViewAllTags }}</a >
291+ </template >
287292 </div >
288293 </div >
289294</template >
0 commit comments