File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,10 @@ type View =
83
83
type : "note" ;
84
84
noteHash : EntryHash ;
85
85
}
86
+ | {
87
+ type : "standalone-note" ;
88
+ noteHash : EntryHash ;
89
+ }
86
90
| {
87
91
type : "create" ;
88
92
data : any
@@ -181,7 +185,7 @@ export class NotebooksApp extends LitElement {
181
185
// here comes your rendering logic for that specific entry type
182
186
return {
183
187
view : {
184
- type : "note" ,
188
+ type : "standalone- note" ,
185
189
noteHash : weClient . renderInfo . view . hrlWithContext . hrl [ 1 ] ,
186
190
} ,
187
191
client : weClient . renderInfo . appletClient ,
@@ -348,7 +352,7 @@ export class NotebooksApp extends LitElement {
348
352
</ div>
349
353
</ div>
350
354
` ;
351
- if ( this . view . type === "note" )
355
+ if ( this . view . type === "note" || this . view . type === "standalone-note" )
352
356
return html `
353
357
<syn- document- context
354
358
.documentstore = ${ this . _synStore . documents . get ( this . view . noteHash ) }
@@ -530,12 +534,12 @@ export class NotebooksApp extends LitElement {
530
534
>
531
535
<sl- spinner style= "font-size: 2rem" > </ sl- spinner>
532
536
</ div> ` ;
533
- if ( this . view . type !== "main ") {
537
+ if ( this . view . type === "standalone-note ") {
534
538
return this . renderContent ( )
535
539
}
536
540
537
541
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} >
539
543
<div class= "about" >
540
544
<p> Notebooks is a demonstration Holochain app built by Lighning Rod Labs .</ p>
541
545
<p> <b> Developers : </ b>
You can’t perform that action at this time.
0 commit comments