mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
localised error message for cannot edit post
This commit is contained in:
parent
04ff82f880
commit
a4907f2bcb
@ -801,6 +801,8 @@
|
|||||||
},
|
},
|
||||||
"error-pages" : {
|
"error-pages" : {
|
||||||
"profile-not-found": "Dieses Profil konnte nicht gefunden werden",
|
"profile-not-found": "Dieses Profil konnte nicht gefunden werden",
|
||||||
"back-to-index": "Zurück zur Startseite"
|
"back-to-index": "Zurück zur Startseite",
|
||||||
|
"post-not-found": "Dieser Beitrag konnte nicht gefunden werden",
|
||||||
|
"cannot-edit-post": "Dieser Beitrag kann nicht editiert werden"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -800,8 +800,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"error-pages" : {
|
"error-pages" : {
|
||||||
"user-not-found": "This profile could not be found",
|
"profile-not-found": "This profile could not be found",
|
||||||
"back-to-index": "Back to index page"
|
"back-to-index": "Back to index page",
|
||||||
|
"post-not-found": "This post could not be found",
|
||||||
|
"cannot-edit-post": "This post cannot be edited"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -35,7 +35,7 @@ const options = {
|
|||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
path: 'post',
|
path: 'post',
|
||||||
message: 'This post could not be found',
|
message: 'error-pages.post-not-found',
|
||||||
}
|
}
|
||||||
const persistentLinks = PersistentLinks(options)
|
const persistentLinks = PersistentLinks(options)
|
||||||
|
|
||||||
|
|||||||
@ -38,7 +38,7 @@ export default {
|
|||||||
variables: { id },
|
variables: { id },
|
||||||
})
|
})
|
||||||
if (contribution.author.id !== store.getters['auth/user'].id) {
|
if (contribution.author.id !== store.getters['auth/user'].id) {
|
||||||
error({ statusCode: 403, message: "You can't edit that!" })
|
error({ statusCode: 403, message: 'error-pages.cannot-edit-post' })
|
||||||
}
|
}
|
||||||
return { contribution }
|
return { contribution }
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user