File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,10 @@ type View =
8383 type : "note" ;
8484 noteHash : EntryHash ;
8585 }
86+ | {
87+ type : "standalone-note" ;
88+ noteHash : EntryHash ;
89+ }
8690 | {
8791 type : "create" ;
8892 data : any
@@ -181,7 +185,7 @@ export class NotebooksApp extends LitElement {
181185 // here comes your rendering logic for that specific entry type
182186 return {
183187 view : {
184- type : "note" ,
188+ type : "standalone- note" ,
185189 noteHash : weClient . renderInfo . view . hrlWithContext . hrl [ 1 ] ,
186190 } ,
187191 client : weClient . renderInfo . appletClient ,
@@ -348,7 +352,7 @@ export class NotebooksApp extends LitElement {
348352 </ div>
349353 </ div>
350354 ` ;
351- if ( this . view . type === "note" )
355+ if ( this . view . type === "note" || this . view . type === "standalone-note" )
352356 return html `
353357 <syn- document- context
354358 .documentstore = ${ this . _synStore . documents . get ( this . view . noteHash ) }
@@ -530,12 +534,12 @@ export class NotebooksApp extends LitElement {
530534 >
531535 <sl- spinner style= "font-size: 2rem" > </ sl- spinner>
532536 </ div> ` ;
533- if ( this . view . type !== "main ") {
537+ if ( this . view . type === "standalone-note ") {
534538 return this . renderContent ( )
535539 }
536540
537541 return html `
538- <sl- dialog label= "Notebooks: UI v0.2.2 for DNA v0.2.0" id = "about- dialog" width= {600} >
542+ <sl- dialog label= "Notebooks: UI v0.2.3 for DNA v0.2.0" id = "about- dialog" width= {600} >
539543 <div class= "about" >
540544 <p> Notebooks is a demonstration Holochain app built by Lighning Rod Labs .</ p>
541545 <p> <b> Developers : </ b>
You can’t perform that action at this time.
0 commit comments