This commit is contained in:
2021-03-18 22:13:46 +00:00
parent 3609deeca2
commit 54dfeef488
2 changed files with 31 additions and 20 deletions

View File

@@ -130,7 +130,11 @@ export default {
title: "Review",
icon: "$ayiCalendarCheck",
key: "app:review",
data: { ayaType: formAyaType, recordId: formRecordId }
data: {
ayaType: formAyaType,
recordId: formRecordId,
recordName: recordName
}
});
//AFAIK right now any item with an id and a type can have a history
@@ -311,16 +315,13 @@ export default {
case "review":
//go to list
// path: "/home-reviews/:objectType?/:objectId?",
let objName = null;
if (vm && vm.obj && vm.obj.name) {
objName = vm.obj.name;
}
vm.$router.push({
name: "home-reviews",
params: {
objectType: window.$gz.util.stringToIntOrNull(item.data.ayaType),
objectId: window.$gz.util.stringToIntOrNull(item.data.recordId),
name: objName
name: item.data.recordName
}
});
break;