added the app name in the document title and fixed the double initial load on records list

This commit is contained in:
Gani Georgiev committed 2022-07-18 19:44:10 +03:00
1 parent f8f3ca25ee
commit f56adf26f4
21 files changed
+458 -437

No files matched your search

-19
View File
@@ -859,25 +859,6 @@ export default class CommonHelper {
});
}
/**
* Updates the page document title.
*
* @param {String} title
* @param {String} [suffix]
*/
static setDocumentTitle(title, suffix = "PocketBase") {
let parts = [];
if (!CommonHelper.isEmpty(title)) {
parts.push(title.trim());
}
if (!CommonHelper.isEmpty(suffix)) {
parts.push(suffix.trim());
}
document.title = parts.join(' - ')
}
/**
* Normalizes and append a value to the provided form data.
*