better save KF

This commit is contained in:
STEINNI
2025-11-24 20:49:53 +00:00
parent 76ff0ecb19
commit 1143c52c11
2 changed files with 11 additions and 6 deletions
+4 -1
View File
@@ -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)
}
}