mirror of
https://github.com/AventurasTeam/Aventuras.git
synced 2026-04-28 03:40:11 +00:00
fixed loading states
This commit is contained in:
parent
1418226061
commit
9723dff31b
2 changed files with 2 additions and 3 deletions
|
|
@ -530,10 +530,8 @@
|
|||
messageId: narrationEntry.id,
|
||||
result: event.result,
|
||||
});
|
||||
ui.setGenerationStatus("Updating world...");
|
||||
await story.applyClassificationResult(event.result);
|
||||
await story.updateEntryTimeEnd(narrationEntry.id);
|
||||
ui.setGenerationStatus("Saving...");
|
||||
|
||||
if (settings.systemServicesSettings.imageGeneration.enabled) {
|
||||
const presentCharacters = story.characters.filter(
|
||||
|
|
|
|||
|
|
@ -36,8 +36,9 @@ export function handleEvent(
|
|||
if (event.phase === 'narrative') {
|
||||
callbacks.startStreaming(state.visualProseMode, state.streamingEntryId);
|
||||
} else if (event.phase === 'classification') {
|
||||
callbacks.setGenerationStatus('Classifying world state...');
|
||||
callbacks.setGenerationStatus('Updating world...');
|
||||
} else if (event.phase === 'post') {
|
||||
callbacks.setGenerationStatus(state.isCreativeMode ? 'Generating suggestions...' : 'Generating actions...');
|
||||
state.isCreativeMode ? callbacks.setSuggestionsLoading(true) : callbacks.setActionChoicesLoading(true);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue