Skip to content

Commit 7dc938c

Browse files
committed
Tags: Dataset landing page - fix button font and style #2193
1 parent 6f9afd8 commit 7dc938c

File tree

1 file changed

+17
-6
lines changed
  • Console/BExIS.Web.Shell/Areas/DDM/BExIS.Modules.Ddm.UI/Views/Data

1 file changed

+17
-6
lines changed

Console/BExIS.Web.Shell/Areas/DDM/BExIS.Modules.Ddm.UI/Views/Data/_tagsView.cshtml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,15 @@
8787
</div>
8888

8989
<div>
90-
<button id="showTags" class="bx bx-function fa-arrow-down small" onclick="onClickFn()"> Show History</button>
91-
90+
<button id="showTags" title="Show dataset history as table" class="bx-button small function" style="background-color: #8080809c" onclick="onClickFn()">
91+
<span class="fa fa-arrow-down"></span>
92+
<span style="padding:5px;">
93+
Show History
94+
</span>
95+
</button>
9296
@if (hasEditRigths)
9397
{
94-
<button id="editTags" class="bx bx-function fa-tag small"></button>
98+
<button id="editTags" class="bx-button fa-tag small function"></button>
9599
}
96100
</div>
97101
</div>
@@ -144,10 +148,17 @@
144148
tagsview.style.display = "block";
145149
}
146150
147-
const element = document.getElementById("showTags");
151+
const element = document.getElementById("showTags").querySelector("span.fa");
148152
element.classList.toggle("fa-arrow-up");
149153
element.classList.toggle("fa-arrow-down");
150-
element.innerText = element.innerText === " Show History" ? " Hide History" : " Show History";
151-
154+
// look at text within span and change it accordingly (2nd span child of button)
155+
const span = element.querySelector("span:nth-child(2)");
156+
if (span) {
157+
if (span.innerText.trim() === "Show History") {
158+
span.innerText = " Hide History";
159+
} else {
160+
span.innerText = " Show History";
161+
}
162+
}
152163
}
153164
</script>

0 commit comments

Comments
 (0)