This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user