Change: slug strings

This commit is contained in:
Nicholas Wallace 2024-08-28 22:14:50 -07:00
parent 95143a7816
commit 10c93ed9c6
3 changed files with 5 additions and 3 deletions

View file

@ -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 = {

View file

@ -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
} }

View file

@ -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",