mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-12 04:11:43 +00:00
Change: slug strings
This commit is contained in:
parent
95143a7816
commit
10c93ed9c6
3 changed files with 5 additions and 3 deletions
|
|
@ -165,7 +165,7 @@ export default {
|
||||||
},
|
},
|
||||||
openShare() {
|
openShare() {
|
||||||
if (!this.newShareSlug) {
|
if (!this.newShareSlug) {
|
||||||
this.$toast.error('Slug is required')
|
this.$toast.error(this.$strings.ToastSlugRequired)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const payload = {
|
const payload = {
|
||||||
|
|
|
||||||
|
|
@ -121,14 +121,14 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
openFeed() {
|
openFeed() {
|
||||||
if (!this.newFeedSlug) {
|
if (!this.newFeedSlug) {
|
||||||
this.$toast.error('Must set a feed slug')
|
this.$toast.error(this.$strings.ToastSlugRequired)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const sanitized = this.$sanitizeSlug(this.newFeedSlug)
|
const sanitized = this.$sanitizeSlug(this.newFeedSlug)
|
||||||
if (this.newFeedSlug !== sanitized) {
|
if (this.newFeedSlug !== sanitized) {
|
||||||
this.newFeedSlug = sanitized
|
this.newFeedSlug = sanitized
|
||||||
this.$toast.warning('Slug had to be modified - Run again')
|
this.$toast.warning(this.$strings.ToastSlugMustChange)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -921,6 +921,8 @@
|
||||||
"ToastServerSettingsUpdateSuccess": "Server settings updated",
|
"ToastServerSettingsUpdateSuccess": "Server settings updated",
|
||||||
"ToastSessionDeleteFailed": "Failed to delete session",
|
"ToastSessionDeleteFailed": "Failed to delete session",
|
||||||
"ToastSessionDeleteSuccess": "Session deleted",
|
"ToastSessionDeleteSuccess": "Session deleted",
|
||||||
|
"ToastSlugMustChange": "Slug contains invalid characters",
|
||||||
|
"ToastSlugRequired": "Slug is required",
|
||||||
"ToastSocketConnected": "Socket connected",
|
"ToastSocketConnected": "Socket connected",
|
||||||
"ToastSocketDisconnected": "Socket disconnected",
|
"ToastSocketDisconnected": "Socket disconnected",
|
||||||
"ToastSocketFailedToConnect": "Socket failed to connect",
|
"ToastSocketFailedToConnect": "Socket failed to connect",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue