mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +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)
|
||||||
|
|
||||||
@ -55,14 +55,14 @@ export default {
|
|||||||
},
|
},
|
||||||
// TODO implement
|
// TODO implement
|
||||||
/* {
|
/* {
|
||||||
name: this.$t('common.letsTalk'),
|
name: this.$t('common.letsTalk'),
|
||||||
path: `/post/${id}/${slug}#lets-talk`
|
path: `/post/${id}/${slug}#lets-talk`
|
||||||
}, */
|
}, */
|
||||||
// TODO implement
|
// TODO implement
|
||||||
/* {
|
/* {
|
||||||
name: this.$t('common.versus'),
|
name: this.$t('common.versus'),
|
||||||
path: `/post/${id}/${slug}#versus`
|
path: `/post/${id}/${slug}#versus`
|
||||||
} */
|
} */
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -71,9 +71,9 @@ export default {
|
|||||||
},
|
},
|
||||||
// TODO implement
|
// TODO implement
|
||||||
/* {
|
/* {
|
||||||
name: this.$t('common.takeAction'),
|
name: this.$t('common.takeAction'),
|
||||||
path: `/post/${id}/${slug}/take-action`
|
path: `/post/${id}/${slug}/take-action`
|
||||||
} */
|
} */
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@ -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