mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Update confirm mark as finished to use translation #4017
This commit is contained in:
		
							parent
							
								
									ef77a88fce
								
							
						
					
					
						commit
						a3cd9e4440
					
				@ -503,7 +503,7 @@ export default {
 | 
				
			|||||||
    toggleFinished(confirmed = false) {
 | 
					    toggleFinished(confirmed = false) {
 | 
				
			||||||
      if (!this.userIsFinished && this.progressPercent > 0 && !confirmed) {
 | 
					      if (!this.userIsFinished && this.progressPercent > 0 && !confirmed) {
 | 
				
			||||||
        const payload = {
 | 
					        const payload = {
 | 
				
			||||||
          message: `Are you sure you want to mark "${this.title}" as finished?`,
 | 
					          message: this.$getString('MessageConfirmMarkItemFinished', [this.title]),
 | 
				
			||||||
          callback: (confirmed) => {
 | 
					          callback: (confirmed) => {
 | 
				
			||||||
            if (confirmed) {
 | 
					            if (confirmed) {
 | 
				
			||||||
              this.toggleFinished(true)
 | 
					              this.toggleFinished(true)
 | 
				
			||||||
 | 
				
			|||||||
@ -155,7 +155,7 @@ export default {
 | 
				
			|||||||
      const itemProgressPercent = episode.progress?.progress || 0
 | 
					      const itemProgressPercent = episode.progress?.progress || 0
 | 
				
			||||||
      if (!isFinished && itemProgressPercent > 0 && !confirmed) {
 | 
					      if (!isFinished && itemProgressPercent > 0 && !confirmed) {
 | 
				
			||||||
        const payload = {
 | 
					        const payload = {
 | 
				
			||||||
          message: `Are you sure you want to mark "${episode.title}" as finished?`,
 | 
					          message: this.$getString('MessageConfirmMarkItemFinished', [episode.title]),
 | 
				
			||||||
          callback: (confirmed) => {
 | 
					          callback: (confirmed) => {
 | 
				
			||||||
            if (confirmed) {
 | 
					            if (confirmed) {
 | 
				
			||||||
              this.toggleEpisodeFinished(episode, true)
 | 
					              this.toggleEpisodeFinished(episode, true)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user