summaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authora1012112796 <1012112796@qq.com>2021-03-01 03:57:45 +0800
committerGitHub <noreply@github.com>2021-02-28 19:57:45 +0000
commit83cf1a894e5a3a60ea72fa6b92744cb0705dd145 (patch)
tree516863d9c6ead4020004d1730d6bb2d91afbf56b /web_src
parent3e652860bb66fafe162079553f8640553c18fe79 (diff)
downloadgitea-83cf1a894e5a3a60ea72fa6b92744cb0705dd145.tar.gz
gitea-83cf1a894e5a3a60ea72fa6b92744cb0705dd145.zip
Create tag on ui (#13467)
Support create single tag directly support create tag with message from create release ui Signed-off-by: a1012112796 <1012112796@qq.com> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'web_src')
-rw-r--r--web_src/js/index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js
index 7df170b930..cda08870a5 100644
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -3310,6 +3310,7 @@ function initFilterBranchTagDropdown(selector) {
noResults: '',
canCreateBranch: false,
menuVisible: false,
+ createTag: false,
active: 0
};
$data.find('.item').each(function () {
@@ -3341,7 +3342,7 @@ function initFilterBranchTagDropdown(selector) {
return this.filteredItems.length === 0 && !this.showCreateNewBranch;
},
showCreateNewBranch() {
- if (!this.canCreateBranch || !this.searchTerm || this.mode === 'tags') {
+ if (!this.canCreateBranch || !this.searchTerm) {
return false;
}