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:
Abhishek Kumar 2020-04-30 01:41:01 +05:30 committed by Rohit Yadav
parent f69369f2ea
commit 9c356c9a03
3 changed files with 5 additions and 3 deletions

View File

@ -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',

View File

@ -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',

View File

@ -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
})