@@ -15,13 +15,11 @@ import { Drawer } from '@material/mwc-drawer';
15
15
import { ActionDetail , List } from '@material/mwc-list' ;
16
16
import { ListItem } from '@material/mwc-list/mwc-list-item' ;
17
17
18
- import { Mixin , newPendingStateEvent } from './foundation.js' ;
18
+ import { Mixin , newPendingStateEvent , UserInfoEvent } from './foundation.js' ;
19
19
import { LoggingElement } from './Logging.js' ;
20
- import { Plugin , PluggingElement , pluginIcons } from './Plugging.js' ;
20
+ import { PluggingElement , Plugin , pluginIcons } from './Plugging.js' ;
21
21
import { SettingElement } from './Setting.js' ;
22
22
23
- import { UserInfoEvent } from './foundation.js' ;
24
-
25
23
interface MenuItem {
26
24
icon : string ;
27
25
name : string ;
@@ -312,7 +310,14 @@ export function Hosting<
312
310
> </ mwc-icon-button >
313
311
< div slot ="title " id ="title "> ${ this . docName } </ div >
314
312
${ this . username != undefined
315
- ? html `< span id ="userField " slot ="actionItems " style ="font-family:Roboto " > ${ translate ( 'userinfo.loggedInAs' , { name : this . username } ) } </ span > `
313
+ ? html `< span
314
+ id ="userField "
315
+ slot ="actionItems "
316
+ style ="font-family:Roboto "
317
+ > ${ translate ( 'userinfo.loggedInAs' , {
318
+ name : this . username ,
319
+ } ) } </ span
320
+ > `
316
321
: `` }
317
322
${ this . menu . map ( this . renderActionItem ) }
318
323
${ this . doc
@@ -336,12 +341,18 @@ export function Hosting<
336
341
< mwc-icon-button
337
342
class ="landing_icon "
338
343
icon ="${ mi . icon } "
339
- @click ="${ ( ) =>
344
+ @click ="${ ( ) => {
345
+ ( < HTMLElement > (
346
+ this . menuUI . querySelector (
347
+ 'mwc-icon-button[label="Menu"]'
348
+ )
349
+ ) ) . click ( ) ;
340
350
( < ListItem > (
341
351
this . menuUI . querySelector ( 'mwc-list' ) ! . items [
342
352
index
343
353
]
344
- ) ) . click ( ) } "
354
+ ) ) . click ( ) ;
355
+ } } "
345
356
>
346
357
< div class ="landing_label "> ${ mi . name } </ div >
347
358
</ mwc-icon-button >
0 commit comments