|  | @ -8,7 +8,7 @@ | 
			
		
	
		
		
			
				
					|  |  |     <div class="text-lg text-center font-light relative px-7"> |  |  |     <div class="text-lg text-center font-light relative px-7"> | 
			
		
	
		
		
			
				
					|  |  |       <h1 |  |  |       <h1 | 
			
		
	
		
		
			
				
					|  |  |         class="text-lg text-center px-2 py-1 absolute -left-2 -top-1" |  |  |         class="text-lg text-center px-2 py-1 absolute -left-2 -top-1" | 
			
		
	
		
		
			
				
					
					|  |  |         @click="$router.back()" |  |  |         @click="cancel()" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |       > |  |  |       > | 
			
		
	
		
		
			
				
					|  |  |         <fa icon="chevron-left" class="fa-fw"></fa> |  |  |         <fa icon="chevron-left" class="fa-fw"></fa> | 
			
		
	
		
		
			
				
					|  |  |       </h1> |  |  |       </h1> | 
			
		
	
	
		
		
			
				
					|  | @ -184,6 +184,7 @@ export default class GiftedDetails extends Vue { | 
			
		
	
		
		
			
				
					|  |  |   } |  |  |   } | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |   cancel() { |  |  |   cancel() { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     this.deleteImage(); // not awaiting, so they'll go back immediately | 
			
		
	
		
		
			
				
					|  |  |     this.$router.back(); |  |  |     this.$router.back(); | 
			
		
	
		
		
			
				
					|  |  |   } |  |  |   } | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  | @ -212,15 +213,8 @@ export default class GiftedDetails extends Vue { | 
			
		
	
		
		
			
				
					|  |  |       }, |  |  |       }, | 
			
		
	
		
		
			
				
					|  |  |     ); |  |  |     ); | 
			
		
	
		
		
			
				
					|  |  |     if (response.status === 204) { |  |  |     if (response.status === 204) { | 
			
		
	
		
		
			
				
					
					|  |  |       this.$notify( |  |  |       // don't bother with a notification | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |         { |  |  |       // (either they'll simply continue or they're canceling and going back) | 
			
				
				
			
		
	
		
		
			
				
					|  |  |           group: "alert", |  |  |  | 
			
		
	
		
		
			
				
					|  |  |           type: "success", |  |  |  | 
			
		
	
		
		
			
				
					|  |  |           title: "Deleted", |  |  |  | 
			
		
	
		
		
			
				
					|  |  |           text: "That image record was deleted.", |  |  |  | 
			
		
	
		
		
			
				
					|  |  |         }, |  |  |  | 
			
		
	
		
		
			
				
					|  |  |         5000, |  |  |  | 
			
		
	
		
		
			
				
					|  |  |       ); |  |  |  | 
			
		
	
		
		
	
		
		
	
		
		
			
				
					|  |  |     } else { |  |  |     } else { | 
			
		
	
		
		
			
				
					|  |  |       console.error("Error deleting image:", response); |  |  |       console.error("Error deleting image:", response); | 
			
		
	
		
		
			
				
					|  |  |       this.$notify( |  |  |       this.$notify( | 
			
		
	
	
		
		
			
				
					|  | @ -232,6 +226,7 @@ export default class GiftedDetails extends Vue { | 
			
		
	
		
		
			
				
					|  |  |         }, |  |  |         }, | 
			
		
	
		
		
			
				
					|  |  |         5000, |  |  |         5000, | 
			
		
	
		
		
			
				
					|  |  |       ); |  |  |       ); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       // keep the imageUrl in localStorage so the user can try again if they want | 
			
		
	
		
		
			
				
					|  |  |       return; |  |  |       return; | 
			
		
	
		
		
			
				
					|  |  |     } |  |  |     } | 
			
		
	
		
		
			
				
					|  |  |     localStorage.removeItem("imageUrl"); |  |  |     localStorage.removeItem("imageUrl"); | 
			
		
	
	
		
		
			
				
					|  | @ -328,8 +323,9 @@ export default class GiftedDetails extends Vue { | 
			
		
	
		
		
			
				
					|  |  |             title: "Success", |  |  |             title: "Success", | 
			
		
	
		
		
			
				
					|  |  |             text: `That ${this.isTrade ? "trade" : "gift"} was recorded.`, |  |  |             text: `That ${this.isTrade ? "trade" : "gift"} was recorded.`, | 
			
		
	
		
		
			
				
					|  |  |           }, |  |  |           }, | 
			
		
	
		
		
			
				
					
					|  |  |           7000, |  |  |           5000, | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |         ); |  |  |         ); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         localStorage.removeItem("imageUrl"); | 
			
		
	
		
		
			
				
					|  |  |         this.$router.back(); |  |  |         this.$router.back(); | 
			
		
	
		
		
			
				
					|  |  |       } |  |  |       } | 
			
		
	
		
		
			
				
					|  |  |       // eslint-disable-next-line @typescript-eslint/no-explicit-any |  |  |       // eslint-disable-next-line @typescript-eslint/no-explicit-any | 
			
		
	
	
		
		
			
				
					|  | 
 |