| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -106,6 +106,7 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    <div class="bg-slate-100 rounded-md overflow-hidden px-4 py-4 mt-8 mb-8"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      <label | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        v-if="notificationUnchanged" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        for="toggleNotifications" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        class="flex items-center justify-between cursor-pointer" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        @click=" | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -145,6 +146,10 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          ></div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        </div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      </label> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      <label v-else> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        Notification status may have changed. Revisit this page to see the | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        latest setting. | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      </label> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    </div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    <h3 class="text-sm uppercase font-semibold mb-3">Data</h3> | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -449,8 +454,8 @@ import "dexie-export-import"; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import { Component, Vue } from "vue-facing-decorator"; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import { useClipboard } from "@vueuse/core"; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import QuickNav from "@/components/QuickNav"; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import TopMessage from "@/components/TopMessage"; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import QuickNav from "@/components/QuickNav.vue"; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import TopMessage from "@/components/TopMessage.vue"; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import { AppString } from "@/constants/app"; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import { db, accountsDB } from "@/db/index"; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import { MASTER_SETTINGS_KEY, Settings } from "@/db/tables/settings"; | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -487,6 +492,7 @@ export default class AccountViewView extends Vue { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  derivationPath = ""; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  givenName = ""; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  isRegistered = false; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  notificationUnchanged = true; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  numAccounts = 0; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  publicHex = ""; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  publicBase64 = ""; | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -514,6 +520,7 @@ export default class AccountViewView extends Vue { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  set toggleNotifications(value) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    this.isSubscribed = value; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    this.notificationUnchanged = false; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  /** | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -729,7 +736,7 @@ export default class AccountViewView extends Vue { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  public async updateWarnIfProdServer(newSetting) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  public async updateWarnIfProdServer(newSetting: boolean) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    try { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      await db.open(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      db.settings.update(MASTER_SETTINGS_KEY, { | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -752,7 +759,7 @@ export default class AccountViewView extends Vue { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  public async updateWarnIfTestServer(newSetting) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  public async updateWarnIfTestServer(newSetting: boolean) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    try { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      await db.open(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      db.settings.update(MASTER_SETTINGS_KEY, { | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |