Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
154 changes: 77 additions & 77 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 12 additions & 3 deletions src/outline/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import * as paneRegistry from 'pane-registry'
import './manager.css'
import * as $rdf from 'rdflib'
import * as UI from 'solid-ui'
import { store } from 'solid-logic'
import { solidLogicSingleton, store } from 'solid-logic'
import { propertyViews } from './propertyViews'
import { outlineIcons } from './outlineIcons.js' // @@ chec
import { UserInput } from './userInput.js'
Expand All @@ -20,6 +20,7 @@ import { announceNavigation } from '../navigation/events'
import { resolveSource } from '../navigation/options'
import { refreshNavbarVisibility } from '../navigation/navbarVisibility'
import '../components/file-explorer-header'
import AccessControlModal from 'solid-ui/components/access-control-modal'

export default function (context) {
const dom = context.dom
Expand Down Expand Up @@ -481,8 +482,16 @@ export default function (context) {
provider.paneRenderOptions = options
provider.soloPane = options.solo
provider.openPane = (paneSubject, paneName) => openPaneInPlace(paneSubject, paneRegistry.byName(paneName))
// TODO: for now we do this until we create sharing dialog in solid-panes
provider.handleAccessClick = () => openPaneInPlace(subject, paneRegistry.byName('sharing'))
provider.handleAccessClick = async () => {
const accessGrants = await solidLogicSingleton.acl.findAccessGrants(subject)

UI.showDialog(AccessControlModal, {
props: {
subjectUri: subject.uri,
accessGrants
}
})
}

if (provider.pane) {
tr.classList.add('outlinePaneRow')
Expand Down
Loading