|  | @ -126,6 +126,7 @@ | 
			
		
	
		
		
			
				
					|  |  |                                 <button v-if="settings.disableAuth" class="btn btn-outline-primary me-1" @click="enableAuth">{{ $t("Enable Auth") }}</button> |  |  |                                 <button v-if="settings.disableAuth" class="btn btn-outline-primary me-1" @click="enableAuth">{{ $t("Enable Auth") }}</button> | 
			
		
	
		
		
			
				
					|  |  |                                 <button v-if="! settings.disableAuth" class="btn btn-primary me-1" @click="confirmDisableAuth">{{ $t("Disable Auth") }}</button> |  |  |                                 <button v-if="! settings.disableAuth" class="btn btn-primary me-1" @click="confirmDisableAuth">{{ $t("Disable Auth") }}</button> | 
			
		
	
		
		
			
				
					|  |  |                                 <button v-if="! settings.disableAuth" class="btn btn-danger me-1" @click="$root.logout">{{ $t("Logout") }}</button> |  |  |                                 <button v-if="! settings.disableAuth" class="btn btn-danger me-1" @click="$root.logout">{{ $t("Logout") }}</button> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                                 <button class="btn btn-outline-danger me-1" @click="confirmClearStatistics">{{ $t("Clear all Statistics") }}</button> | 
			
		
	
		
		
			
				
					|  |  |                             </div> |  |  |                             </div> | 
			
		
	
		
		
			
				
					|  |  |                         </template> |  |  |                         </template> | 
			
		
	
		
		
			
				
					|  |  |                     </div> |  |  |                     </div> | 
			
		
	
	
		
		
			
				
					|  | @ -184,6 +185,10 @@ | 
			
		
	
		
		
			
				
					|  |  |                     <p>Bitte mit Vorsicht nutzen.</p> |  |  |                     <p>Bitte mit Vorsicht nutzen.</p> | 
			
		
	
		
		
			
				
					|  |  |                 </template> |  |  |                 </template> | 
			
		
	
		
		
			
				
					|  |  |             </Confirm> |  |  |             </Confirm> | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             <Confirm ref="confirmClearStatistics" btn-style="btn-danger" :yes-text="$t('Yes')" :no-text="$t('No')" @yes="clearStatistics"> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                 {{ $t("confirmClearStatisticsMsg") }} | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             </Confirm> | 
			
		
	
		
		
			
				
					|  |  |         </div> |  |  |         </div> | 
			
		
	
		
		
			
				
					|  |  |     </transition> |  |  |     </transition> | 
			
		
	
		
		
			
				
					|  |  | </template> |  |  | </template> | 
			
		
	
	
		
		
			
				
					|  | @ -282,6 +287,10 @@ export default { | 
			
		
	
		
		
			
				
					|  |  |             this.$refs.confirmDisableAuth.show(); |  |  |             this.$refs.confirmDisableAuth.show(); | 
			
		
	
		
		
			
				
					|  |  |         }, |  |  |         }, | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         confirmClearStatistics() { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             this.$refs.confirmClearStatistics.show(); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         }, | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |         disableAuth() { |  |  |         disableAuth() { | 
			
		
	
		
		
			
				
					|  |  |             this.settings.disableAuth = true; |  |  |             this.settings.disableAuth = true; | 
			
		
	
		
		
			
				
					|  |  |             this.saveSettings(); |  |  |             this.saveSettings(); | 
			
		
	
	
		
		
			
				
					|  | @ -293,6 +302,15 @@ export default { | 
			
		
	
		
		
			
				
					|  |  |             this.$root.storage().removeItem("token"); |  |  |             this.$root.storage().removeItem("token"); | 
			
		
	
		
		
			
				
					|  |  |         }, |  |  |         }, | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         clearStatistics() { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             this.$root.clearStatistics((res) => { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                 if (res.ok) { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                     this.$router.go(); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                 } else { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                     toast.error(res.msg); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                 } | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             }) | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         }, | 
			
		
	
		
		
			
				
					|  |  |     }, |  |  |     }, | 
			
		
	
		
		
			
				
					|  |  | } |  |  | } | 
			
		
	
		
		
			
				
					|  |  | </script> |  |  | </script> | 
			
		
	
	
		
		
			
				
					|  | 
 |