@@ -66,7 +66,8 @@ UI.aclControl.shortNameForFolder = function (x) {
66
66
return str || '/'
67
67
}
68
68
69
- UI . aclControl . ACLControlBox5 = function ( subject , dom , noun , kb , callback ) {
69
+ UI . aclControl . ACLControlBox5 = function ( subject , context , noun , kb , callback ) {
70
+ const dom = context . dom
70
71
var updater = kb . updater || new $rdf . UpdateManager ( kb )
71
72
var ACL = UI . ns . acl
72
73
var doc = subject . doc ( ) // The ACL is actually to the doc describing the thing
@@ -603,9 +604,9 @@ UI.aclControl.ACLControlBox5 = function (subject, dom, noun, kb, callback) {
603
604
'A Web App (origin)' ,
604
605
async event => {
605
606
removeOthers ( event . target )
606
- var context = { div : bar , dom }
607
- await UI . authn . logInLoadProfile ( context )
608
- var trustedApps = kb . each ( context . me , ns . acl ( 'trustedApp' ) )
607
+ var eventContext = { div : bar , dom }
608
+ await UI . authn . logInLoadProfile ( eventContext )
609
+ var trustedApps = kb . each ( eventContext . me , ns . acl ( 'trustedApp' ) )
609
610
var trustedOrigins = trustedApps . flatMap ( app =>
610
611
kb . each ( app , ns . acl ( 'origin' ) )
611
612
)
@@ -640,10 +641,12 @@ UI.aclControl.ACLControlBox5 = function (subject, dom, noun, kb, callback) {
640
641
table . style = 'margin: em; background-color: #eee;'
641
642
642
643
// Add the Trusted App pane for managing you set of apps
643
- var trustedAppControl = window . panes . trustedApplications . render (
644
- context . me ,
645
- dom ,
646
- { }
644
+ const trustedApplications = context . session . paneRegistry . byName (
645
+ 'trustedApplications'
646
+ )
647
+ const trustedAppControl = trustedApplications . render (
648
+ eventContext . me ,
649
+ context
647
650
)
648
651
trustedAppControl . style . borderColor = 'orange'
649
652
trustedAppControl . style . borderWidth = '0.1em'
0 commit comments