@@ -201,9 +201,9 @@ module.exports = {
201201 console . log ( 'Dropped URI list (2): ' + uris )
202202 if ( uris ) {
203203 uris . map ( function ( u ) {
204- var target = $rdf . sym ( u )
205- console . log ( 'Dropped on attachemnt ' + u )
206- var tool = makeToolNode ( target , UI . ns . wf ( 'attachment' ) , UI . utils . label ( target ) , UI . icons . iconBase + 'noun_25830.svg' )
204+ var target = $rdf . sym ( u ) // Attachment needs text label to disinguish I think not icon.
205+ console . log ( 'Dropped on attachemnt ' + u ) // icon was: UI.icons.iconBase + 'noun_25830.svg'
206+ var tool = makeToolNode ( target , UI . ns . wf ( 'attachment' ) , UI . utils . label ( target ) , null )
207207 kb . add ( tool , UI . ns . meeting ( 'view' ) , 'iframe' , meetingDoc )
208208 saveBackMeetingDoc ( )
209209 } )
@@ -461,6 +461,7 @@ module.exports = {
461461
462462 var renderTabSettings = function ( containerDiv , subject ) {
463463 containerDiv . innerHTML = ''
464+ containerDiv . style += "border-color: #eed;"
464465 containerDiv . appendChild ( dom . createElement ( 'h3' ) ) . textContent = 'Adjust this tab'
465466 if ( kb . holds ( subject , ns . rdf ( 'type' ) , ns . meeting ( 'Tool' ) ) ) {
466467 var form = $rdf . sym ( 'https://linkeddata.github.io/solid-app-set/meeting/meetingDetailsForm.ttl#settings' )
@@ -474,12 +475,15 @@ module.exports = {
474475 break
475476 }
476477 }
477- var ds = kb . statementsMatching ( subject ) . concat ( kb . statementsMatching ( undefined , undefined , subject ) )
478+ var target = kb . any ( subject , ns . meeting ( 'target' ) )
479+ var ds = kb . statementsMatching ( subject ) .
480+ concat ( kb . statementsMatching ( undefined , undefined , subject ) ) .
481+ concat ( kb . statementsMatching ( meeting , undefined , target ) )
478482 kb . remove ( ds ) // Remove all links to and from the tab node
479483 saveBackMeetingDoc ( )
480484 } )
481485 delButton . setAttribute ( 'class' , '' )
482- delButton . setAttribute ( 'style' , 'padding: 1em; font-size: 120%; background-color: red; color: white;' )
486+ delButton . setAttribute ( 'style' , 'margin: 1em; border-radius: 0.5em; padding: 1em; font-size: 120%; background-color: red; color: white;' )
483487 delButton . textContent = 'Delete this tab'
484488 containerDiv . appendChild ( tipDiv (
485489 'Drag URL-bar icons of web pages into the tab bar on the left to add new meeting materials.' ) )
0 commit comments