diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 6ab2b30fe7dd1bba5743890c624b8172ab61ce35..1088325bb07151c48d403478614034163c102788 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -50,6 +50,7 @@ Changed Fixed ~~~~~ +* The error page displayed when an ObjectOverview component is not able to get the required data was incomplete. * The permission check for the dashboard edit page failed when the user had no person assigned. * In some cases, the IFrame for legacy pages was not properly sized for its content. * When accessing the person overview page without a person ID, the avatar image was not displayed properly. diff --git a/aleksis/core/frontend/components/generic/ObjectOverview.vue b/aleksis/core/frontend/components/generic/ObjectOverview.vue index d962243e988167f266cf003fd81b01c6e41a0454..4839b3b8a8a3413ffa11ac2478a5c571c9378522 100644 --- a/aleksis/core/frontend/components/generic/ObjectOverview.vue +++ b/aleksis/core/frontend/components/generic/ObjectOverview.vue @@ -6,6 +6,9 @@ v-else :short-error-message-key="shortErrorMessageKey" :long-error-message-key="longErrorMessageKey" + :redirect-button-text-key="redirectButtonTextKey" + :redirect-route-name="redirectRouteName" + :redirect-button-icon="redirectButtonIcon" /> </div> </template> @@ -32,6 +35,21 @@ export default { required: false, default: "network_errors.page_not_found", }, + redirectButtonTextKey: { + type: String, + required: false, + default: "network_errors.back_to_start", + }, + redirectRouteName: { + type: String, + required: false, + default: "dashboard", + }, + redirectButtonIcon: { + type: String, + required: false, + default: "mdi-home-outline", + }, }, methods: { getTitleAttr(obj) {