Fix titles of category, tag, tool pages (#905)

This commit is contained in:
Philipp Fischbeck 2022-01-07 22:08:05 +01:00 committed by GitHub
parent 1482f51fcd
commit 76d2eecd86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 21 additions and 29 deletions

View File

@ -67,10 +67,10 @@ export default defineComponent({
state.headline = i18n.t("tag.tags") as string;
break;
case ItemTypes.category:
state.headline = i18n.t("recipe.categories") as string;
state.headline = i18n.t("category.categories") as string;
break;
case ItemTypes.tool:
state.headline = "Tools";
state.headline = i18n.t("tool.tools") as string;
state.icon = $globals.icons.potSteam;
break;
default:
@ -99,8 +99,10 @@ export default defineComponent({
itemsSorted,
};
},
head: {
title: "vbase-nuxt",
head() {
return {
title: this.headline as string,
}
},
});
</script>

View File

@ -33,6 +33,7 @@
"show-assets": "Show Assets"
},
"category": {
"categories": "Categories",
"category-created": "Category created",
"category-creation-failed": "Category creation failed",
"category-deleted": "Category Deleted",
@ -436,6 +437,9 @@
"tags": "Tags",
"untagged-count": "Untagged {count}"
},
"tool":{
"tools": "Tools"
},
"user": {
"admin": "Admin",
"are-you-sure-you-want-to-delete-the-link": "Are you sure you want to delete the link <b>{link}<b/>?",

View File

@ -109,7 +109,7 @@ export default defineComponent({
},
head() {
return {
title: this.$t("sidebar.categories") as string,
title: this.$t("category.categories") as string,
};
},
methods: {
@ -122,4 +122,3 @@ export default defineComponent({
},
});
</script>

View File

@ -27,9 +27,5 @@ export default defineComponent({
categories,
};
},
// head: {
// // @ts-ignore
// title: this.$t("sidebar.categories") as string,
// },
});
</script>

View File

@ -109,7 +109,7 @@ export default defineComponent({
},
head() {
return {
title: this.$t("sidebar.categories") as string,
title: this.$t("tag.tags") as string,
};
},
methods: {
@ -122,4 +122,3 @@ export default defineComponent({
},
});
</script>

View File

@ -26,9 +26,5 @@ export default defineComponent({
tools,
};
},
// head: {
// // @ts-ignore
// title: this.$t("sidebar.tags") as string,
// },
});
</script>

View File

@ -103,7 +103,7 @@ export default defineComponent({
},
head() {
return {
title: this.$t("sidebar.categories") as string,
title: this.$t("tool.tools") as string,
};
},
methods: {
@ -116,4 +116,3 @@ export default defineComponent({
},
});
</script>

View File

@ -26,8 +26,5 @@ export default defineComponent({
tools,
};
},
head: {
title: "Tools",
},
});
</script>