Skip to content
Snippets Groups Projects

Resolve "When the branch name is a divider or separator, the project home page cannot display the branch name correctly."

2 unresolved threads
Compare and Show latest version
60 files
+ 249
213
Compare changes
  • Side-by-side
  • Inline
Files
60
@@ -680,13 +680,19 @@ GitLabDropdown = (function() {
@@ -680,13 +680,19 @@ GitLabDropdown = (function() {
};
};
GitLabDropdown.prototype.renderItem = function(data, group, index) {
GitLabDropdown.prototype.renderItem = function(data, group, index) {
 
let parent;
 
 
if (this.dropdown && this.dropdown[0]) {
 
parent = this.dropdown[0].parentNode;
 
}
 
return renderItem({
return renderItem({
options: Object.assign({}, this.options, {
options: Object.assign({}, this.options, {
icon: this.icon,
icon: this.icon,
parent: this.dropdown[0].parentNode,
highlight: this.highlight,
highlight: this.highlight,
highlightText: text => this.highlightTextMatches(text, this.filterInput.val()),
highlightText: text => this.highlightTextMatches(text, this.filterInput.val()),
highlightTemplate: this.highlightTemplate.bind(this),
highlightTemplate: this.highlightTemplate.bind(this),
 
parent,
}),
}),
data,
data,
group,
group,
Loading