@@ -66,7 +66,8 @@ UI.aclControl.shortNameForFolder = function (x) {
6666 return str || '/'
6767}
6868
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
7071 var updater = kb . updater || new $rdf . UpdateManager ( kb )
7172 var ACL = UI . ns . acl
7273 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) {
603604 'A Web App (origin)' ,
604605 async event => {
605606 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' ) )
609610 var trustedOrigins = trustedApps . flatMap ( app =>
610611 kb . each ( app , ns . acl ( 'origin' ) )
611612 )
@@ -640,10 +641,12 @@ UI.aclControl.ACLControlBox5 = function (subject, dom, noun, kb, callback) {
640641 table . style = 'margin: em; background-color: #eee;'
641642
642643 // 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
647650 )
648651 trustedAppControl . style . borderColor = 'orange'
649652 trustedAppControl . style . borderWidth = '0.1em'
0 commit comments