TriplyDB / Yasgui

Yet Another Sparql GUI
https://yasgui.triply.cc
MIT License
185 stars 55 forks source link

CollapsePrefixesOnLoad not acted upon #164

Closed woutermont closed 4 years ago

woutermont commented 4 years ago

While working on #162 I noticed prefixes are also not collapsed when Yasgui.Yasqe.defaults.collapsePrefixesOnLoad is set to true.

To reproduce:

<div id="yasgui"></div>
<script>

   Yasgui.Yasqe.defaults.collapsePrefixesOnLoad = true;
   Yasgui.Yasqe.defaults.value = 
      "PREFIX one: <https://example.org/one/>" + "\n" +
      "PREFIX two: <https://example.org/two/>";

   const yasgui = new Yasgui(document.getElementById("yasgui"));

   //yasgui.getTab().yasqe.collapsePrefixes();

</script>

Only when also uncommenting the per-tab function call, the prefixes are collapsed.

I post this as an issue since I'm not sure where this default should be read.

LaurensRietveld commented 4 years ago

Thanks for the report, this is now fixed :+1: