mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
infra: fix getDiagnostics response display (#312)
Fixes #201 Fixes #202 Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com> Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
f69369f2ea
commit
9c356c9a03
@ -102,7 +102,8 @@ export default {
|
||||
targetid: {
|
||||
value: (record) => { return record.id }
|
||||
}
|
||||
}
|
||||
},
|
||||
response: (result) => { return result && result.diagnostics && result.diagnostics.url ? `Please click the link to download the retrieved diagnostics: <p><a href='${result.diagnostics.url}'>${result.diagnostics.url}</a></p>` : 'Invalid response' }
|
||||
},
|
||||
{
|
||||
api: 'destroyRouter',
|
||||
|
||||
@ -93,7 +93,8 @@ export default {
|
||||
targetid: {
|
||||
value: (record) => { return record.id }
|
||||
}
|
||||
}
|
||||
},
|
||||
response: (result) => { return result && result.diagnostics && result.diagnostics.url ? `Please click the link to download the retrieved diagnostics: <p><a href='${result.diagnostics.url}'>${result.diagnostics.url}</a></p>` : 'Invalid response' }
|
||||
},
|
||||
{
|
||||
api: 'destroySystemVm',
|
||||
|
||||
@ -646,7 +646,7 @@ export default {
|
||||
const description = action.response(result.jobresult)
|
||||
if (description) {
|
||||
this.$notification.info({
|
||||
message: action.label,
|
||||
message: this.$t(action.label),
|
||||
description: (<span domPropsInnerHTML={description}></span>),
|
||||
duration: 0
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user