mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-28 22:27:14 +02:00
Remove commented out toasts
This commit is contained in:
@@ -388,9 +388,6 @@ export default {
|
|||||||
if (value) {
|
if (value) {
|
||||||
const res = await AbsFileSystem.deleteTrackFromItem({ id: this.localLibraryItemId, trackLocalFileId: localFile.id, trackContentUrl: localEpisodeAudioTrack.contentUrl })
|
const res = await AbsFileSystem.deleteTrackFromItem({ id: this.localLibraryItemId, trackLocalFileId: localFile.id, trackContentUrl: localEpisodeAudioTrack.contentUrl })
|
||||||
if (res?.id) {
|
if (res?.id) {
|
||||||
|
|
||||||
//this.$toast.success('Deleted episode successfully')
|
|
||||||
|
|
||||||
if (this.isLocal) {
|
if (this.isLocal) {
|
||||||
// If this is local episode then redirect to server episode when available
|
// If this is local episode then redirect to server episode when available
|
||||||
if (this.serverEpisodeId) {
|
if (this.serverEpisodeId) {
|
||||||
@@ -416,9 +413,6 @@ export default {
|
|||||||
if (value) {
|
if (value) {
|
||||||
const res = await AbsFileSystem.deleteItem(this.localLibraryItem)
|
const res = await AbsFileSystem.deleteItem(this.localLibraryItem)
|
||||||
if (res?.success) {
|
if (res?.success) {
|
||||||
|
|
||||||
//this.$toast.success('Deleted successfully')
|
|
||||||
|
|
||||||
if (this.isLocal) {
|
if (this.isLocal) {
|
||||||
// If local then redirect to server version when available
|
// If local then redirect to server version when available
|
||||||
if (this.serverLibraryItemId) {
|
if (this.serverLibraryItemId) {
|
||||||
|
|||||||
@@ -58,7 +58,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { Dialog } from '@capacitor/dialog'
|
|
||||||
import { AbsFileSystem, AbsDownloader } from '@/plugins/capacitor'
|
import { AbsFileSystem, AbsDownloader } from '@/plugins/capacitor'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
@@ -58,7 +58,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { Dialog } from '@capacitor/dialog'
|
|
||||||
import { AbsFileSystem, AbsDownloader } from '@/plugins/capacitor'
|
import { AbsFileSystem, AbsDownloader } from '@/plugins/capacitor'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -215,7 +214,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
console.log('Local folder', JSON.stringify(localFolder))
|
console.log('Local folder', JSON.stringify(localFolder))
|
||||||
|
|
||||||
this.startDownload(localFolder)
|
this.startDownload(localFolder)
|
||||||
},
|
},
|
||||||
async startDownload(localFolder) {
|
async startDownload(localFolder) {
|
||||||
|
|||||||
@@ -316,9 +316,6 @@ export default {
|
|||||||
if (value) {
|
if (value) {
|
||||||
const res = await AbsFileSystem.deleteTrackFromItem({ id: this.localLibraryItemId, trackLocalFileId: localFile.id, trackContentUrl: localEpisodeAudioTrack.contentUrl })
|
const res = await AbsFileSystem.deleteTrackFromItem({ id: this.localLibraryItemId, trackLocalFileId: localFile.id, trackContentUrl: localEpisodeAudioTrack.contentUrl })
|
||||||
if (res?.id) {
|
if (res?.id) {
|
||||||
|
|
||||||
// this.$toast.success('Deleted episode successfully')
|
|
||||||
|
|
||||||
if (this.isLocal) {
|
if (this.isLocal) {
|
||||||
// If this is local episode then redirect to server episode when available
|
// If this is local episode then redirect to server episode when available
|
||||||
if (this.serverEpisodeId) {
|
if (this.serverEpisodeId) {
|
||||||
@@ -513,9 +510,6 @@ export default {
|
|||||||
this.$nativeHttp
|
this.$nativeHttp
|
||||||
.delete(`/api/podcasts/${this.serverLibraryItemId}/episode/${this.serverEpisodeId}?hard=1`)
|
.delete(`/api/podcasts/${this.serverLibraryItemId}/episode/${this.serverEpisodeId}?hard=1`)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
|
||||||
//this.$toast.success('Episode deleted from server')
|
|
||||||
|
|
||||||
this.$router.replace(`/item/${this.serverLibraryItemId}`)
|
this.$router.replace(`/item/${this.serverLibraryItemId}`)
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user