[#4462] fixed Admin UI record and collection panels not reinitializing properly on browser back/forward navigation
This commit is contained in:
@@ -75,7 +75,7 @@
|
||||
// update indexes on collection rename
|
||||
$: if (collection.name && original?.name != collection.name && collection.indexes.length > 0) {
|
||||
collection.indexes = collection.indexes?.map((idx) =>
|
||||
CommonHelper.replaceIndexTableName(idx, collection.name)
|
||||
CommonHelper.replaceIndexTableName(idx, collection.name),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -97,6 +97,11 @@
|
||||
return collectionPanel?.hide();
|
||||
}
|
||||
|
||||
export function forceHide() {
|
||||
confirmClose = false;
|
||||
hide();
|
||||
}
|
||||
|
||||
async function load(model) {
|
||||
setErrors({}); // reset errors
|
||||
|
||||
@@ -151,7 +156,7 @@
|
||||
hide();
|
||||
|
||||
addSuccessToast(
|
||||
!collection.id ? "Successfully created collection." : "Successfully updated collection."
|
||||
!collection.id ? "Successfully created collection." : "Successfully updated collection.",
|
||||
);
|
||||
|
||||
dispatch("save", {
|
||||
|
||||
Reference in New Issue
Block a user