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)
|
||||
.then(() => configurator.addHistory('Board', boardFileNewPath))
|
||||
.then(() => this.getBoardHistory())
|
||||
.then(()=>{
|
||||
if(!!window.boardUpdate){
|
||||
window.boardUpdate(boardInfo)
|
||||
}
|
||||
})
|
||||
})
|
||||
.catch((err) => {
|
||||
alert(`Loading ${filepath} failed: ${err}`)
|
||||
|
|
|
@ -147,6 +147,9 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
this.updateCatInfo()
|
||||
window.boardUpdate = () => {
|
||||
this.boardUpdate()
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
SSRAM_ENABLED: {
|
||||
|
@ -210,6 +213,9 @@ export default {
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
boardUpdate() {
|
||||
this.updateCatInfo()
|
||||
},
|
||||
checkboxController(name, event) {
|
||||
// prevent default event
|
||||
event.preventDefault()
|
||||
|
@ -439,6 +445,7 @@ export default {
|
|||
if (preLaunchedVMCPUIDs.indexOf(pcpu_id) !== -1) {
|
||||
return;
|
||||
}
|
||||
// noinspection JSCheckFunctionSignatures
|
||||
if (!pcpu_vms.hasOwnProperty(pcpu_id)) {
|
||||
pcpu_vms[pcpu_id] = {'y': [], 'n': []}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue