Skip to content
Merged
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
13 changes: 8 additions & 5 deletions src/acl-control.js
Original file line number Diff line number Diff line change
Expand Up @@ -567,16 +567,18 @@ UI.aclControl.ACLControlBox5 = function (subject, dom, noun, kb, callback) {
})
try {
kb.fetcher.putBack(targetACLDoc)
.then(function () {
statusBlock.textContent = ' (Now editing specific access for this ' + noun + ')'
bottomRightCell.removeChild(editPlease)
renderBox()
})
} catch (e) {
let msg = ' Error writing back access control file! ' + e
console.error(msg)
statusBlock.textContent += msg
return
}
kb.fetcher.requested[targetACLDoc.uri] = 'done' // cheat - say cache is now in sync
statusBlock.textContent = ' (Now editing specific access for this ' + noun + ')'
bottomRightCell.removeChild(editPlease)
renderBox()
// kb.fetcher.requested[targetACLDoc.uri] = 'done' // cheat - say cache is now in sync
})
} // defaults.length
} else { // Not using defaults
Expand All @@ -593,8 +595,9 @@ UI.aclControl.ACLControlBox5 = function (subject, dom, noun, kb, callback) {
kb.fetcher.delete(targetACLDoc.uri)
.then(function () {
statusBlock.textContent = ' The sharing for this ' + noun + ' is now the default.'
bottomRow.removeChild(useDefault)
bottomRightCell.removeChild(useDefault)
box.style.cssText = 'color: #777;'
bottomLeftCell.innerHTML = ''
renderBox()
})
.catch(function (e) {
Expand Down