We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdad4ff commit 3842552Copy full SHA for 3842552
src/injectors/gitlab-injector.ts
@@ -69,6 +69,16 @@ class RepositoryInjector implements ButtonInjector {
69
70
const btn = this.renderButton(currentUrl, openAsPopup);
71
parent.firstElementChild.appendChild(btn);
72
+
73
+ const primaryButtons = parent.firstElementChild.getElementsByClassName("btn-primary");
74
+ if (primaryButtons && primaryButtons.length > 1) {
75
+ Array.from(primaryButtons)
76
+ .slice(0, primaryButtons.length - 1)
77
+ .forEach(primaryButton => {
78
+ primaryButton.classList.remove("btn-primary");
79
+ Array.from(primaryButton.getElementsByTagName("svg")).forEach(svg => svg.style.fill = "currentColor")
80
+ });
81
+ }
82
}
83
84
protected renderButton(url: string, openAsPopup: boolean): HTMLElement {
0 commit comments