File tree Expand file tree Collapse file tree 1 file changed +17
-6
lines changed
Console/BExIS.Web.Shell/Areas/DDM/BExIS.Modules.Ddm.UI/Views/Data Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change 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 >
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 >
You can’t perform that action at this time.
0 commit comments