@@ -27,7 +27,11 @@ export const FilamentShow: React.FC<IResourceComponentsProps> = () => {
|
|||||||
if (item.vendor) {
|
if (item.vendor) {
|
||||||
vendorPrefix = `${item.vendor.name} - `;
|
vendorPrefix = `${item.vendor.name} - `;
|
||||||
}
|
}
|
||||||
return t("filament.titles.show_title", { id: item.id, name: vendorPrefix + item.name });
|
return t("filament.titles.show_title", {
|
||||||
|
id: item.id,
|
||||||
|
name: vendorPrefix + item.name,
|
||||||
|
interpolation: { escapeValue: false },
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const gotoVendor = (): undefined => {
|
const gotoVendor = (): undefined => {
|
||||||
|
|||||||
@@ -45,7 +45,11 @@ export const SpoolShow: React.FC<IResourceComponentsProps> = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const formatTitle = (item: ISpool) => {
|
const formatTitle = (item: ISpool) => {
|
||||||
return t("spool.titles.show_title", { id: item.id, name: formatFilament(item.filament) });
|
return t("spool.titles.show_title", {
|
||||||
|
id: item.id,
|
||||||
|
name: formatFilament(item.filament),
|
||||||
|
interpolation: { escapeValue: false },
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
2
client/src/pages/vendors/show.tsx
vendored
2
client/src/pages/vendors/show.tsx
vendored
@@ -22,7 +22,7 @@ export const VendorShow: React.FC<IResourceComponentsProps> = () => {
|
|||||||
const record = data?.data;
|
const record = data?.data;
|
||||||
|
|
||||||
const formatTitle = (item: IVendor) => {
|
const formatTitle = (item: IVendor) => {
|
||||||
return t("vendor.titles.show_title", { id: item.id, name: item.name });
|
return t("vendor.titles.show_title", { id: item.id, name: item.name, interpolation: { escapeValue: false } });
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user