better save KF
This commit is contained in:
@@ -276,11 +276,14 @@ class KeyframeView extends WindozDomContent {
|
||||
} else if(this.currentKeyframe.kfName != this.outputs.kfName.value){ //rename
|
||||
this.currentKeyframe.kfName = this.outputs.kfName.value
|
||||
result = await this.models.keyframes.rename(this.currentKeyframe)
|
||||
console.log(result)
|
||||
}
|
||||
|
||||
if(result.success){
|
||||
|
||||
await this.models.keyframes.save(this.currentKeyframe.kfId, this.kfArena.agents)
|
||||
this.outputs.btnSaveKF.disabled = true
|
||||
ui.growl.append('Keyframe saved!','success',3000)
|
||||
setTimeout(() => { this.outputs.btnSaveKF.disabled = false}, 3000)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user