mirror of
https://github.com/frappe/lms.git
synced 2026-04-26 10:39:41 +03:00
fix(settings): transaction button now redirects successfully to batch/course
This commit is contained in:
@@ -233,17 +233,15 @@ const updateTransaction = () => {
|
||||
}
|
||||
|
||||
const openDetails = () => {
|
||||
if (props.data) {
|
||||
const docType = props.data.payment_for_document_type
|
||||
const docName = props.data.payment_for_document
|
||||
if (docType && docName) {
|
||||
router.push({
|
||||
name: docType == 'LMS Course' ? 'CourseDetail' : 'BatchDetail',
|
||||
params: {
|
||||
[docType == 'LMS Course' ? 'courseName' : 'batchName']: docName,
|
||||
},
|
||||
})
|
||||
}
|
||||
const docType = transactionData.value?.payment_for_document_type
|
||||
const docName = transactionData.value?.payment_for_document
|
||||
if (docType && docName) {
|
||||
router.push({
|
||||
name: docType == 'LMS Course' ? 'CourseDetail' : 'BatchDetail',
|
||||
params: {
|
||||
[docType == 'LMS Course' ? 'courseName' : 'batchName']: docName,
|
||||
},
|
||||
})
|
||||
show.value = false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user