File tree 2 files changed +16
-4
lines changed
2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 26
26
27
27
jobs :
28
28
build :
29
- uses : ' flowfuse/github-actions-workflows/.github/workflows/build_node_package.yml@v0.29 .0'
29
+ uses : ' flowfuse/github-actions-workflows/.github/workflows/build_node_package.yml@v0.30 .0'
30
30
with :
31
31
node : ' [
32
32
{"version": "18", "tests": true, "lint": true},
37
37
if : |
38
38
( github.event_name == 'push' && github.ref == 'refs/heads/main' ) ||
39
39
( github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' )
40
- uses : ' flowfuse/github-actions-workflows/.github/workflows/publish_node_package.yml@v0.29 .0'
40
+ uses : ' flowfuse/github-actions-workflows/.github/workflows/publish_node_package.yml@v0.30 .0'
41
41
with :
42
42
package_name : flowfuse-nr-launcher
43
43
publish_package : true
53
53
if : |
54
54
( github.event_name == 'push' && github.ref == 'refs/heads/main' ) ||
55
55
( github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' )
56
- uses : ' flowfuse/github-actions-workflows/.github/workflows/publish_node_package.yml@v0.29 .0'
56
+ uses : ' flowfuse/github-actions-workflows/.github/workflows/publish_node_package.yml@v0.30 .0'
57
57
with :
58
58
package_name : flowfuse-nr-theme
59
59
publish_package : true
Original file line number Diff line number Diff line change 26
26
navigateTo ( url )
27
27
} )
28
28
}
29
+ const interceptLogOutClick = ( url ) => {
30
+ document . querySelector ( '#usermenu-item-logout' )
31
+ . addEventListener ( 'click' , ( e ) => {
32
+ e . preventDefault ( )
33
+ e . stopPropagation ( )
34
+ if ( context . shouldEmitInsteadOfRedirect ) {
35
+ window . parent . postMessage ( {
36
+ type : 'logout'
37
+ } , '*' )
38
+ }
39
+ } )
40
+ }
29
41
30
42
function changeFavicon ( src ) {
31
43
const link = document . createElement ( 'link' )
102
114
}
103
115
} )
104
116
}
105
-
117
+ interceptLogOutClick ( )
106
118
interceptLogoClick ( projectURL )
107
119
} )
108
120
} )
You can’t perform that action at this time.
0 commit comments