diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-12-17 09:15:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-17 01:15:18 +0000 |
commit | 2d7e6e9482da19aae4660823f38c2153cf942bb8 (patch) | |
tree | 447fd5c0387d2b71f19f4ffaaa0a1e22d918bb1b /web_src/js/components | |
parent | 9f9bff0f04e7104fb9db5d2a039aa6d1a2fae08e (diff) | |
download | gitea-2d7e6e9482da19aae4660823f38c2153cf942bb8.tar.gz gitea-2d7e6e9482da19aae4660823f38c2153cf942bb8.zip |
Fix various trivial problems (#32861)
1. add/improve comments to help future readers could understand the
problem more easily.
2. add an error log to LDAP with username fallback
3. use `or` instead of `Iif` for "repo/branch_dropdown" (`Iif` was a
mistake, but it doesn't really affect the UI)
4. add `tw-font-mono` style to container digest to match dockerhub
5. fix a bug in RepoBranchTagSelector: the form is not updated when
there is no click to an item
---------
Co-authored-by: delvh <dev.lh@web.de>
Diffstat (limited to 'web_src/js/components')
-rw-r--r-- | web_src/js/components/RepoBranchTagSelector.vue | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/web_src/js/components/RepoBranchTagSelector.vue b/web_src/js/components/RepoBranchTagSelector.vue index 2f66336a66..4b7ca1429d 100644 --- a/web_src/js/components/RepoBranchTagSelector.vue +++ b/web_src/js/components/RepoBranchTagSelector.vue @@ -113,6 +113,16 @@ const sfc = { if (this.menuVisible) this.menuVisible = false; }); }, + + mounted() { + if (this.refFormActionTemplate) { + // if the selector is used in a form and needs to change the form action, + // make a mock item and select it to update the form action + const item: ListItem = {selected: true, refType: this.currentRefType, refShortName: this.currentRefShortName, rssFeedLink: ''}; + this.selectItem(item); + } + }, + methods: { selectItem(item: ListItem) { this.menuVisible = false; |