mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-10 19:31:39 +00:00
Update: sessions strings
This commit is contained in:
parent
e6b7287c2b
commit
fc18643032
2 changed files with 6 additions and 3 deletions
|
|
@ -100,7 +100,7 @@
|
||||||
|
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
<ui-btn v-if="!isOpenSession && !isMediaItemShareSession" small color="error" @click.stop="deleteSessionClick">{{ $strings.ButtonDelete }}</ui-btn>
|
<ui-btn v-if="!isOpenSession && !isMediaItemShareSession" small color="error" @click.stop="deleteSessionClick">{{ $strings.ButtonDelete }}</ui-btn>
|
||||||
<ui-btn v-else-if="!isMediaItemShareSession" small color="error" @click.stop="closeSessionClick">Close Open Session</ui-btn>
|
<ui-btn v-else-if="!isMediaItemShareSession" small color="error" @click.stop="closeSessionClick">{{ $strings.ButtonCloseSession }}</ui-btn>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</modals-modal>
|
</modals-modal>
|
||||||
|
|
@ -206,14 +206,14 @@ export default {
|
||||||
this.$axios
|
this.$axios
|
||||||
.$post(`/api/session/${this._session.id}/close`)
|
.$post(`/api/session/${this._session.id}/close`)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.$toast.success('Session closed')
|
this.$toast.success(this.$strings.ToastSessionCloseSuccess)
|
||||||
this.show = false
|
this.show = false
|
||||||
this.$emit('closedSession')
|
this.$emit('closedSession')
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.error('Failed to close session', error)
|
console.error('Failed to close session', error)
|
||||||
const errMsg = error.response?.data || ''
|
const errMsg = error.response?.data || ''
|
||||||
this.$toast.error(errMsg || 'Failed to close open session')
|
this.$toast.error(errMsg || this.$strings.ToastSessionCloseFailed)
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
this.processing = false
|
this.processing = false
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@
|
||||||
"ButtonChooseFiles": "Choose files",
|
"ButtonChooseFiles": "Choose files",
|
||||||
"ButtonClearFilter": "Clear Filter",
|
"ButtonClearFilter": "Clear Filter",
|
||||||
"ButtonCloseFeed": "Close Feed",
|
"ButtonCloseFeed": "Close Feed",
|
||||||
|
"ButtonCloseSession": "Close Open Session",
|
||||||
"ButtonCollections": "Collections",
|
"ButtonCollections": "Collections",
|
||||||
"ButtonConfigureScanner": "Configure Scanner",
|
"ButtonConfigureScanner": "Configure Scanner",
|
||||||
"ButtonCreate": "Create",
|
"ButtonCreate": "Create",
|
||||||
|
|
@ -961,6 +962,8 @@
|
||||||
"ToastSeriesUpdateSuccess": "Series update success",
|
"ToastSeriesUpdateSuccess": "Series update success",
|
||||||
"ToastServerSettingsUpdateFailed": "Failed to update server settings",
|
"ToastServerSettingsUpdateFailed": "Failed to update server settings",
|
||||||
"ToastServerSettingsUpdateSuccess": "Server settings updated",
|
"ToastServerSettingsUpdateSuccess": "Server settings updated",
|
||||||
|
"ToastSessionCloseFailed": "Failed to close session",
|
||||||
|
"ToastSessionCloseSuccess": "Session closed",
|
||||||
"ToastSessionDeleteFailed": "Failed to delete session",
|
"ToastSessionDeleteFailed": "Failed to delete session",
|
||||||
"ToastSessionDeleteSuccess": "Session deleted",
|
"ToastSessionDeleteSuccess": "Session deleted",
|
||||||
"ToastSessionsRemoved": "Sessions removed",
|
"ToastSessionsRemoved": "Sessions removed",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue