mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix: merge conflicts (name renamed to model_name) for models
This commit is contained in:
parent
16e93c6455
commit
abe2a0f9b4
@ -71,7 +71,7 @@ export default function CheckpointModelEdit(props: CheckpointModelEditProps) {
|
|||||||
const editModelFormSubmitHandler = (values: CheckpointModelConfig) => {
|
const editModelFormSubmitHandler = (values: CheckpointModelConfig) => {
|
||||||
const responseBody = {
|
const responseBody = {
|
||||||
base_model: retrievedModel.base_model,
|
base_model: retrievedModel.base_model,
|
||||||
model_name: retrievedModel.name,
|
model_name: retrievedModel.model_name,
|
||||||
body: values,
|
body: values,
|
||||||
};
|
};
|
||||||
updateMainModel(responseBody);
|
updateMainModel(responseBody);
|
||||||
|
@ -67,7 +67,7 @@ export default function DiffusersModelEdit(props: DiffusersModelEditProps) {
|
|||||||
const editModelFormSubmitHandler = (values: DiffusersModelConfig) => {
|
const editModelFormSubmitHandler = (values: DiffusersModelConfig) => {
|
||||||
const responseBody = {
|
const responseBody = {
|
||||||
base_model: retrievedModel.base_model,
|
base_model: retrievedModel.base_model,
|
||||||
model_name: retrievedModel.name,
|
model_name: retrievedModel.model_name,
|
||||||
body: values,
|
body: values,
|
||||||
};
|
};
|
||||||
updateMainModel(responseBody);
|
updateMainModel(responseBody);
|
||||||
|
@ -38,7 +38,7 @@ export default function ModelConvert(props: ModelConvertProps) {
|
|||||||
const modelConvertHandler = () => {
|
const modelConvertHandler = () => {
|
||||||
const responseBody = {
|
const responseBody = {
|
||||||
base_model: model.base_model,
|
base_model: model.base_model,
|
||||||
model_name: model.name,
|
model_name: model.model_name,
|
||||||
};
|
};
|
||||||
convertModel(responseBody);
|
convertModel(responseBody);
|
||||||
|
|
||||||
@ -46,7 +46,9 @@ export default function ModelConvert(props: ModelConvertProps) {
|
|||||||
dispatch(
|
dispatch(
|
||||||
addToast(
|
addToast(
|
||||||
makeToast({
|
makeToast({
|
||||||
title: `${t('modelManager.modelConversionFailed')}: ${model.name}`,
|
title: `${t('modelManager.modelConversionFailed')}: ${
|
||||||
|
model.model_name
|
||||||
|
}`,
|
||||||
status: 'error',
|
status: 'error',
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
@ -57,7 +59,7 @@ export default function ModelConvert(props: ModelConvertProps) {
|
|||||||
dispatch(
|
dispatch(
|
||||||
addToast(
|
addToast(
|
||||||
makeToast({
|
makeToast({
|
||||||
title: `${t('modelManager.modelConverted')}: ${model.name}`,
|
title: `${t('modelManager.modelConverted')}: ${model.model_name}`,
|
||||||
status: 'success',
|
status: 'success',
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
@ -67,7 +69,7 @@ export default function ModelConvert(props: ModelConvertProps) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<IAIAlertDialog
|
<IAIAlertDialog
|
||||||
title={`${t('modelManager.convert')} ${model.name}`}
|
title={`${t('modelManager.convert')} ${model.model_name}`}
|
||||||
acceptCallback={modelConvertHandler}
|
acceptCallback={modelConvertHandler}
|
||||||
cancelCallback={modelConvertCancelHandler}
|
cancelCallback={modelConvertCancelHandler}
|
||||||
acceptButtonText={`${t('modelManager.convert')}`}
|
acceptButtonText={`${t('modelManager.convert')}`}
|
||||||
|
Loading…
Reference in New Issue
Block a user