Added in-session recent items with cross tab support. BOD-178
This commit is contained in:
9
client/src/utils/create-recent-item.js
Normal file
9
client/src/utils/create-recent-item.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import i18n from "i18next";
|
||||
|
||||
export function CreateRecentItem(id, type, labelid, url) {
|
||||
return {
|
||||
id,
|
||||
label: `${i18n.t(`general.itemtypes.${type}`)}: ${labelid}`,
|
||||
url,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user