mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Update:Remove toast notifications for marking items as finished #1900
This commit is contained in:
		
							parent
							
								
									00a02921dd
								
							
						
					
					
						commit
						7e377297d7
					
				| @ -303,13 +303,13 @@ export default { | |||||||
|       this.$axios |       this.$axios | ||||||
|         .patch(`/api/me/progress/batch/update`, updateProgressPayloads) |         .patch(`/api/me/progress/batch/update`, updateProgressPayloads) | ||||||
|         .then(() => { |         .then(() => { | ||||||
|           this.$toast.success('Batch update success!') |           this.$toast.success(this.$strings.ToastBatchUpdateSuccess) | ||||||
|           this.$store.commit('setProcessingBatch', false) |           this.$store.commit('setProcessingBatch', false) | ||||||
|           this.$store.commit('globals/resetSelectedMediaItems', []) |           this.$store.commit('globals/resetSelectedMediaItems', []) | ||||||
|           this.$eventBus.$emit('bookshelf_clear_selection') |           this.$eventBus.$emit('bookshelf_clear_selection') | ||||||
|         }) |         }) | ||||||
|         .catch((error) => { |         .catch((error) => { | ||||||
|           this.$toast.error('Batch update failed') |           this.$toast.error(this.$strings.ToastBatchUpdateFailed) | ||||||
|           console.error('Failed to batch update read/not read', error) |           console.error('Failed to batch update read/not read', error) | ||||||
|           this.$store.commit('setProcessingBatch', false) |           this.$store.commit('setProcessingBatch', false) | ||||||
|         }) |         }) | ||||||
|  | |||||||
| @ -680,7 +680,6 @@ export default { | |||||||
|         .$patch(apiEndpoint, updatePayload) |         .$patch(apiEndpoint, updatePayload) | ||||||
|         .then(() => { |         .then(() => { | ||||||
|           this.processing = false |           this.processing = false | ||||||
|           toast.success(updatePayload.isFinished ? this.$strings.ToastItemMarkedAsFinishedSuccess : this.$strings.ToastItemMarkedAsNotFinishedSuccess) |  | ||||||
|         }) |         }) | ||||||
|         .catch((error) => { |         .catch((error) => { | ||||||
|           console.error('Failed', error) |           console.error('Failed', error) | ||||||
|  | |||||||
| @ -188,7 +188,6 @@ export default { | |||||||
|         .$patch(`/api/me/progress/${this.book.id}`, updatePayload) |         .$patch(`/api/me/progress/${this.book.id}`, updatePayload) | ||||||
|         .then(() => { |         .then(() => { | ||||||
|           this.isProcessingReadUpdate = false |           this.isProcessingReadUpdate = false | ||||||
|           this.$toast.success(updatePayload.isFinished ? this.$strings.ToastItemMarkedAsFinishedSuccess : this.$strings.ToastItemMarkedAsNotFinishedSuccess) |  | ||||||
|         }) |         }) | ||||||
|         .catch((error) => { |         .catch((error) => { | ||||||
|           console.error('Failed', error) |           console.error('Failed', error) | ||||||
|  | |||||||
| @ -198,7 +198,6 @@ export default { | |||||||
|         .$patch(routepath, updatePayload) |         .$patch(routepath, updatePayload) | ||||||
|         .then(() => { |         .then(() => { | ||||||
|           this.isProcessingReadUpdate = false |           this.isProcessingReadUpdate = false | ||||||
|           this.$toast.success(updatePayload.isFinished ? this.$strings.ToastItemMarkedAsFinishedSuccess : this.$strings.ToastItemMarkedAsNotFinishedSuccess) |  | ||||||
|         }) |         }) | ||||||
|         .catch((error) => { |         .catch((error) => { | ||||||
|           console.error('Failed', error) |           console.error('Failed', error) | ||||||
|  | |||||||
| @ -183,7 +183,6 @@ export default { | |||||||
|         .$patch(`/api/me/progress/${this.libraryItemId}/${this.episode.id}`, updatePayload) |         .$patch(`/api/me/progress/${this.libraryItemId}/${this.episode.id}`, updatePayload) | ||||||
|         .then(() => { |         .then(() => { | ||||||
|           this.isProcessingReadUpdate = false |           this.isProcessingReadUpdate = false | ||||||
|           this.$toast.success(updatePayload.isFinished ? this.$strings.ToastItemMarkedAsFinishedSuccess : this.$strings.ToastItemMarkedAsNotFinishedSuccess) |  | ||||||
|         }) |         }) | ||||||
|         .catch((error) => { |         .catch((error) => { | ||||||
|           console.error('Failed', error) |           console.error('Failed', error) | ||||||
|  | |||||||
| @ -533,7 +533,6 @@ export default { | |||||||
|         .$patch(`/api/me/progress/${this.libraryItemId}`, updatePayload) |         .$patch(`/api/me/progress/${this.libraryItemId}`, updatePayload) | ||||||
|         .then(() => { |         .then(() => { | ||||||
|           this.isProcessingReadUpdate = false |           this.isProcessingReadUpdate = false | ||||||
|           this.$toast.success(updatePayload.isFinished ? this.$strings.ToastItemMarkedAsFinishedSuccess : this.$strings.ToastItemMarkedAsNotFinishedSuccess) |  | ||||||
|         }) |         }) | ||||||
|         .catch((error) => { |         .catch((error) => { | ||||||
|           console.error('Failed', error) |           console.error('Failed', error) | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user