fix: add template track
This commit is contained in:
@@ -102,6 +102,20 @@ pub async fn delete_template(app: tauri::AppHandle, template_id: String) -> Resu
|
||||
execute_python_command(app, &args, None).await
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
pub async fn get_template_detail(app: tauri::AppHandle, template_id: String) -> Result<String, String> {
|
||||
let args = vec![
|
||||
"-m".to_string(),
|
||||
"python_core.services.template_manager".to_string(),
|
||||
"--action".to_string(),
|
||||
"get_template_detail".to_string(),
|
||||
"--template_id".to_string(),
|
||||
template_id,
|
||||
];
|
||||
|
||||
execute_python_command(app, &args, None).await
|
||||
}
|
||||
|
||||
// Example: AI Video generation with progress
|
||||
#[allow(dead_code)]
|
||||
#[tauri::command]
|
||||
|
||||
Reference in New Issue
Block a user