mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-20 20:53:46 +00:00
config_tools: update CAT data when board updated
update CAT data when board updated Tracked-On: #6691 Signed-off-by: Weiyi Feng <weiyix.feng@intel.com>
This commit is contained in:
parent
9af79bd80d
commit
3ce7e86313
@ -148,6 +148,11 @@ export default {
|
|||||||
configurator.writeFile(boardFileNewPath, boardInfo.content)
|
configurator.writeFile(boardFileNewPath, boardInfo.content)
|
||||||
.then(() => configurator.addHistory('Board', boardFileNewPath))
|
.then(() => configurator.addHistory('Board', boardFileNewPath))
|
||||||
.then(() => this.getBoardHistory())
|
.then(() => this.getBoardHistory())
|
||||||
|
.then(()=>{
|
||||||
|
if(!!window.boardUpdate){
|
||||||
|
window.boardUpdate(boardInfo)
|
||||||
|
}
|
||||||
|
})
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
alert(`Loading ${filepath} failed: ${err}`)
|
alert(`Loading ${filepath} failed: ${err}`)
|
||||||
|
@ -147,6 +147,9 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.updateCatInfo()
|
this.updateCatInfo()
|
||||||
|
window.boardUpdate = () => {
|
||||||
|
this.boardUpdate()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
SSRAM_ENABLED: {
|
SSRAM_ENABLED: {
|
||||||
@ -210,6 +213,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
boardUpdate() {
|
||||||
|
this.updateCatInfo()
|
||||||
|
},
|
||||||
checkboxController(name, event) {
|
checkboxController(name, event) {
|
||||||
// prevent default event
|
// prevent default event
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
@ -439,6 +445,7 @@ export default {
|
|||||||
if (preLaunchedVMCPUIDs.indexOf(pcpu_id) !== -1) {
|
if (preLaunchedVMCPUIDs.indexOf(pcpu_id) !== -1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// noinspection JSCheckFunctionSignatures
|
||||||
if (!pcpu_vms.hasOwnProperty(pcpu_id)) {
|
if (!pcpu_vms.hasOwnProperty(pcpu_id)) {
|
||||||
pcpu_vms[pcpu_id] = {'y': [], 'n': []}
|
pcpu_vms[pcpu_id] = {'y': [], 'n': []}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user