Improve WebPushEnabled conditional display
This commit is contained in:
		
							parent
							
								
									67b9d2eaf6
								
							
						
					
					
						commit
						e2120bc66d
					
				
					 1 changed files with 1 additions and 5 deletions
				
			
		|  | @ -86,7 +86,7 @@ const Notifications = () => { | |||
|         <Sound /> | ||||
|         <MinPriority /> | ||||
|         <DeleteAfter /> | ||||
|         {config.enable_web_push && <WebPushEnabled />} | ||||
|         {notifier.pushPossible() && <WebPushEnabled />} | ||||
|       </PrefGroup> | ||||
|     </Card> | ||||
|   ); | ||||
|  | @ -242,10 +242,6 @@ const WebPushEnabled = () => { | |||
|     await prefs.setWebPushEnabled(ev.target.value); | ||||
|   }; | ||||
| 
 | ||||
|   if (!notifier.pushPossible()) { | ||||
|     return null; | ||||
|   } | ||||
| 
 | ||||
|   return ( | ||||
|     <Pref | ||||
|       labelId={labelId} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue