mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Fix:Toasts for item details updated
This commit is contained in:
		
							parent
							
								
									db86bfd63d
								
							
						
					
					
						commit
						b6a86d11d2
					
				@ -108,9 +108,9 @@ export default {
 | 
				
			|||||||
          if (res.warning) {
 | 
					          if (res.warning) {
 | 
				
			||||||
            this.$toast.warning(res.warning)
 | 
					            this.$toast.warning(res.warning)
 | 
				
			||||||
          } else if (res.updated) {
 | 
					          } else if (res.updated) {
 | 
				
			||||||
            this.$toast.success(this.$strings.ToastNoUpdatesNecessary)
 | 
					            this.$toast.success(this.$strings.ToastItemDetailsUpdateSuccess)
 | 
				
			||||||
          } else {
 | 
					          } else {
 | 
				
			||||||
            this.$toast.info(this.$strings.ToastItemDetailsUpdateUnneeded)
 | 
					            this.$toast.info(this.$strings.ToastNoUpdatesNecessary)
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
        })
 | 
					        })
 | 
				
			||||||
        .catch((error) => {
 | 
					        .catch((error) => {
 | 
				
			||||||
@ -170,7 +170,7 @@ export default {
 | 
				
			|||||||
      this.isProcessing = false
 | 
					      this.isProcessing = false
 | 
				
			||||||
      if (updateResult) {
 | 
					      if (updateResult) {
 | 
				
			||||||
        if (updateResult.updated) {
 | 
					        if (updateResult.updated) {
 | 
				
			||||||
          this.$toast.success(this.$strings.MessageItemDetailsUpdated)
 | 
					          this.$toast.success(this.$strings.ToastItemDetailsUpdateSuccess)
 | 
				
			||||||
          return true
 | 
					          return true
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
          this.$toast.info(this.$strings.MessageNoUpdatesWereNecessary)
 | 
					          this.$toast.info(this.$strings.MessageNoUpdatesWereNecessary)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user