improve preset editor
This commit is contained in:
@@ -74,6 +74,7 @@ class CommonStore {
|
||||
conversation: Conversation = {};
|
||||
conversationOrder: string[] = [];
|
||||
activePreset: Preset | null = null;
|
||||
activePresetIndex: number = -1;
|
||||
attachmentUploading: boolean = false;
|
||||
attachments: {
|
||||
[uuid: string]: Attachment[]
|
||||
@@ -342,7 +343,7 @@ class CommonStore {
|
||||
this.lastUnfinishedModelDownloads = value;
|
||||
}
|
||||
|
||||
setEditingPreset(value: Preset) {
|
||||
setEditingPreset(value: Preset | null) {
|
||||
this.editingPreset = value;
|
||||
}
|
||||
|
||||
@@ -356,6 +357,10 @@ class CommonStore {
|
||||
this.activePreset = value;
|
||||
}
|
||||
|
||||
setActivePresetIndex(value: number) {
|
||||
this.activePresetIndex = value;
|
||||
}
|
||||
|
||||
setCompletionSubmittedPrompt(value: string) {
|
||||
this.completionSubmittedPrompt = value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user