Skip to content

Commit e618f1f

Browse files
committed
fix RepoBranchTagSelector
1 parent cfbb5a5 commit e618f1f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

web_src/js/components/RepoBranchTagSelector.vue

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,16 @@ const sfc = {
113113
if (this.menuVisible) this.menuVisible = false;
114114
});
115115
},
116+
117+
mounted() {
118+
if (this.refFormActionTemplate) {
119+
// if the selector is used in a form and needs to change the form action,
120+
// make a mock item and select it to update the form action
121+
const item: ListItem = {selected: true, refType: this.currentRefType, refShortName: this.currentRefShortName, rssFeedLink: ''};
122+
this.selectItem(item);
123+
}
124+
},
125+
116126
methods: {
117127
selectItem(item: ListItem) {
118128
this.menuVisible = false;

0 commit comments

Comments
 (0)