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 responseBody = {
|
||||
base_model: retrievedModel.base_model,
|
||||
model_name: retrievedModel.name,
|
||||
model_name: retrievedModel.model_name,
|
||||
body: values,
|
||||
};
|
||||
updateMainModel(responseBody);
|
||||
|
@ -67,7 +67,7 @@ export default function DiffusersModelEdit(props: DiffusersModelEditProps) {
|
||||
const editModelFormSubmitHandler = (values: DiffusersModelConfig) => {
|
||||
const responseBody = {
|
||||
base_model: retrievedModel.base_model,
|
||||
model_name: retrievedModel.name,
|
||||
model_name: retrievedModel.model_name,
|
||||
body: values,
|
||||
};
|
||||
updateMainModel(responseBody);
|
||||
|
@ -38,7 +38,7 @@ export default function ModelConvert(props: ModelConvertProps) {
|
||||
const modelConvertHandler = () => {
|
||||
const responseBody = {
|
||||
base_model: model.base_model,
|
||||
model_name: model.name,
|
||||
model_name: model.model_name,
|
||||
};
|
||||
convertModel(responseBody);
|
||||
|
||||
@ -46,7 +46,9 @@ export default function ModelConvert(props: ModelConvertProps) {
|
||||
dispatch(
|
||||
addToast(
|
||||
makeToast({
|
||||
title: `${t('modelManager.modelConversionFailed')}: ${model.name}`,
|
||||
title: `${t('modelManager.modelConversionFailed')}: ${
|
||||
model.model_name
|
||||
}`,
|
||||
status: 'error',
|
||||
})
|
||||
)
|
||||
@ -57,7 +59,7 @@ export default function ModelConvert(props: ModelConvertProps) {
|
||||
dispatch(
|
||||
addToast(
|
||||
makeToast({
|
||||
title: `${t('modelManager.modelConverted')}: ${model.name}`,
|
||||
title: `${t('modelManager.modelConverted')}: ${model.model_name}`,
|
||||
status: 'success',
|
||||
})
|
||||
)
|
||||
@ -67,7 +69,7 @@ export default function ModelConvert(props: ModelConvertProps) {
|
||||
|
||||
return (
|
||||
<IAIAlertDialog
|
||||
title={`${t('modelManager.convert')} ${model.name}`}
|
||||
title={`${t('modelManager.convert')} ${model.model_name}`}
|
||||
acceptCallback={modelConvertHandler}
|
||||
cancelCallback={modelConvertCancelHandler}
|
||||
acceptButtonText={`${t('modelManager.convert')}`}
|
||||
|
Loading…
Reference in New Issue
Block a user