1- import { Component , Event , EventEmitter , Prop , h } from '@stencil/core' ;
1+ import { Component , Prop , h } from '@stencil/core' ;
22
33import { popoverController } from '@ionic/core' ;
44
@@ -8,7 +8,6 @@ import userStore from '../../../stores/user.store';
88import i18n from '../../../stores/i18n.store' ;
99
1010import { signIn } from '../../../utils/core/signin.utils' ;
11- import { shareEnabled } from '../../../utils/core/environment.utils' ;
1211
1312@Component ( {
1413 tag : 'app-navigation-actions' ,
@@ -20,10 +19,6 @@ export class AppNavigationActions {
2019 @Prop ( ) write : boolean = true ;
2120 @Prop ( ) publish : boolean = false ;
2221
23- @Event ( ) private actionPublish : EventEmitter < void > ;
24-
25- private shareEnabled : boolean = shareEnabled ( ) ;
26-
2722 private async openMenu ( $event : UIEvent ) {
2823 const popover : HTMLIonPopoverElement = await popoverController . create ( {
2924 component : 'app-user-menu' ,
@@ -39,7 +34,6 @@ export class AppNavigationActions {
3934 < div >
4035 { this . renderSignIn ( ) }
4136 { this . renderPresentationButton ( ) }
42- { this . renderPublishButton ( ) }
4337 { this . renderLoggedIn ( ) }
4438 </ div >
4539 ) ;
@@ -78,21 +72,4 @@ export class AppNavigationActions {
7872 return null ;
7973 }
8074 }
81-
82- private renderPublishButton ( ) {
83- if ( this . publish && this . shareEnabled ) {
84- return (
85- < ion-button
86- class = "publish ion-margin-end"
87- shape = "round"
88- onClick = { ( ) => this . actionPublish . emit ( ) }
89- mode = "md"
90- color = { themeStore . state . darkTheme ? 'light' : 'dark' } >
91- < ion-label > { i18n . state . nav . ready_to_share } </ ion-label >
92- </ ion-button >
93- ) ;
94- } else {
95- return null ;
96- }
97- }
9875}
0 commit comments