fix: dropdown settings buttons | fix: improve model selector
I should have split this into two commits, but I found the issue with the settings buttons *after* I changed how the model selector worked, so its all in this single commit.
This commit is contained in:
@@ -26,6 +26,10 @@ export const useDialog = () => {
|
||||
actionCallback = cb;
|
||||
};
|
||||
|
||||
const setOptions = (options: DialogOptions) => {
|
||||
data.value = options;
|
||||
};
|
||||
|
||||
const confirm = (result: any) => {
|
||||
open.value = false;
|
||||
if (actionCallback === undefined) return;
|
||||
@@ -47,6 +51,7 @@ export const useDialog = () => {
|
||||
page: readonly(page),
|
||||
data: readonly(data),
|
||||
openDialog,
|
||||
setOptions,
|
||||
confirm,
|
||||
close,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user