Skip to content

Commit

Permalink
Merge pull request #759 from ICRAR/1329
Browse files Browse the repository at this point in the history
eagle-1329
  • Loading branch information
M-Wicenec authored Nov 6, 2024
2 parents a50e845 + ae9f0f2 commit 64fc729
Show file tree
Hide file tree
Showing 5 changed files with 344 additions and 348 deletions.
6 changes: 6 additions & 0 deletions src/GraphConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { EagleConfig } from "./EagleConfig";
import { Errors } from "./Errors";
import { Field } from "./Field";
import { LogicalGraph } from "./LogicalGraph";
import { Utils } from "./Utils";

export class GraphConfig {
private id: ko.Observable<GraphConfig.Id>;
Expand Down Expand Up @@ -377,6 +378,11 @@ export class GraphConfigField {
return this.value();
}

toggle = () : GraphConfigField => {
this.value((!Utils.asBool(this.value())).toString());
return this;
}

setComment = (comment: string): GraphConfigField => {
this.comment(comment);
return this;
Expand Down
4 changes: 2 additions & 2 deletions src/ParameterTable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class ParameterTable {
return "";
}

if (Setting.findValue(Setting.BOTTOM_WINDOW_MODE) === Eagle.BottomWindowMode.ParameterTable){
if (Setting.findValue(Setting.BOTTOM_WINDOW_MODE) === Eagle.BottomWindowMode.ParameterTable || Setting.findValue(Setting.BOTTOM_WINDOW_MODE) === Eagle.BottomWindowMode.GraphConfigAttributesTable){
return ParameterTable.selectionParent().getDisplayText() + " - " + ParameterTable.selectionName();
} else {
return "Unknown";
Expand All @@ -73,7 +73,7 @@ export class ParameterTable {
return "";
}

if (Setting.findValue(Setting.BOTTOM_WINDOW_MODE) === Eagle.BottomWindowMode.ParameterTable){
if (Setting.findValue(Setting.BOTTOM_WINDOW_MODE) === Eagle.BottomWindowMode.ParameterTable || Setting.findValue(Setting.BOTTOM_WINDOW_MODE) === Eagle.BottomWindowMode.GraphConfigAttributesTable){
return ParameterTable.selection();
} else {
return "Unknown";
Expand Down
7 changes: 2 additions & 5 deletions static/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ color: #00bb00;}
}

#bottomWindow{
border-top: solid 2px black;
background-color: #002349;
width: 100%;
height: 150px;
Expand Down Expand Up @@ -842,11 +843,6 @@ color: #00bb00;}
z-index:10;
}

#tableOpenDocker{
position: absolute;
left: 160px;
}

.settingCategoryActive{
display: inline-block;
}
Expand Down Expand Up @@ -1804,6 +1800,7 @@ ul.nav.navbat-nav .btn-outline-secondary:hover{
color: white;
visibility: hidden;
padding-left: 3px;
margin-bottom: -0.5px;
pointer-events: none;
}

Expand Down
23 changes: 7 additions & 16 deletions static/tables.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#paramsTableWrapper {
top: 24px;
}

#parameterTable #tableInspector{
position: sticky;
top: 0px;
Expand Down Expand Up @@ -34,7 +30,6 @@

#parameterTableAddParameterButton{
left: 15px;
/* position: absolute; */
}

#tableInspectorSelection{
Expand Down Expand Up @@ -206,7 +201,6 @@ td:first-child input {
#parameterTable .bottomWindowHeaderWrap{
border: none;
justify-content: unset;
border-top: solid 2px black;
height: 46px;
}

Expand All @@ -227,7 +221,7 @@ td:first-child input {
.eagleTableWrapper thead{
position: sticky;
z-index: 111;
top: 24px;
top: 0px;
}

#graphConfigurationsTableWrapper thead{
Expand Down Expand Up @@ -271,13 +265,18 @@ td:first-child input {
.eagleTableDisplay .tableBody, .issuesDisplay .issuesBody{
padding:10px;
background-color: aliceblue;
overflow: auto;
width: 100%;
position: absolute;
top: 53px;
height: calc(100% - 46px);
}

.eagleTableDisplay .scrollWrapper {
height: 100%;
overflow: auto;
position: relative;
}

.eagleTableWrapper tr:nth-child(even) {
background-color: rgba(214, 219, 239, 0.95);
}
Expand Down Expand Up @@ -488,14 +487,6 @@ td:first-child input {
cursor: col-resize;
}




#tableOpenDocker{
position: absolute;
left: 160px;
}

#graphConfigurationsTableWrapper {
}

Expand Down
Loading

0 comments on commit 64fc729

Please sign in to comment.