Skip to content

Commit

Permalink
use profile name
Browse files Browse the repository at this point in the history
  • Loading branch information
b1conrad committed Sep 9, 2023
1 parent 7f0c42b commit 0343384
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion krl/io.picolabs.plan.connect.krl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ruleset io.picolabs.plan.connect {
</form>
<ul>
#{did_map.keys().map(function(k){
name = wrangler:picoQuery(k,"io.picolabs.wrangler","name",{})
name = wrangler:picoQuery(k,"io.picolabs.plan.profile","name",{})
title = name => << title="#{name}">> | ""
<<<li#{title}>#{k.elide()} : #{did_map.get(k).elide()}</li>
>>}).join("")}</ul>
Expand Down
5 changes: 4 additions & 1 deletion krl/io.picolabs.plan.profile.krl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ruleset io.picolabs.plan.profile {
use module io.picolabs.plan.apps alias app
use module io.picolabs.pds alias pds
use module io.picolabs.wrangler alias wrangler
shares profile
shares profile, name
provides data
}
global {
Expand Down Expand Up @@ -100,6 +100,9 @@ You may edit your information: click, change, and press Enter key (or Esc to und
a.put(k,pds:getData("profile",n))
},{})
}
name = function(){
pds:getData("profile",element_names[1])
}
}
rule initializeProfile {
select when io_picolabs_plan_profile factory_reset
Expand Down

1 comment on commit 0343384

@b1conrad
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new shared function name works fine in the Testing tab, but not via wrangler:picoQuery. This is the case that doesn't work for pico engine issue #647.

Please sign in to comment.