Skip to content

Commit

Permalink
changed backend page file
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-ashish-k committed Dec 7, 2023
1 parent 0f9d695 commit a5936c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions nuxt-frontend/pages/backend-development.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<NewFooter class="-mt-4 md:mt-0" />
</div>
</template>

<script setup>
import Header from "@/components/partials/NewHeader.vue";
import config from "@/config.js";
Expand Down Expand Up @@ -32,16 +33,16 @@ let events = {
footer: "view_backend_development_footer",
};
let elements;
beforeEnter: (to, from, next) => {
if (!config.SHOW_BACKEND_DEVELOPMENT_PAGE) {
await ((to, from, next) => {
if (!config.BACKEND_DEVELOPMENT_SEO_META_DATA) {
next({
name: "Error404Page",
params: { pathMatch: "/backend-development" },
});
} else {
next();
}
};
});
onMounted(() => {
elements = ref({
footer: footer,
Expand Down
6 changes: 3 additions & 3 deletions nuxt-frontend/pages/flutter-app-development.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,16 @@ let events = {
footer: "view_flutter_app_development_footer",
};
let elements;
beforeEnter: (to, from, next) => {
if (!config.SHOW_FLUTTER_APP_DEVELOPMENT_PAGE) {
await ((to, from, next) => {
if (!config.FLUTTER_APP_DEVELOPMENT_SEO_META_DATA) {
next({
name: "Error404Page",
params: { pathMatch: "/flutter-app-development" },
});
} else {
next();
}
};
});
onMounted(() => {
elements = ref({
footer: footer,
Expand Down

0 comments on commit a5936c7

Please sign in to comment.