Skip to content

Commit

Permalink
Renaming model save edit too (#4943)
Browse files Browse the repository at this point in the history
  • Loading branch information
YohannParis authored Sep 27, 2024
1 parent ddc23e1 commit 4d6034b
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@
placeholder="Title of new model"
/>
<div v-if="isNaming" class="flex flex-nowrap ml-1 mr-3">
<Button icon="pi pi-check" rounded text @click="updateModelName" />
<Button
icon="pi pi-check"
rounded
text
@click="updateModelName"
title="This will rename the model and save all current changes."
/>
</div>
</template>
<template #edit-buttons v-if="!featureConfig.isPreview">
Expand Down Expand Up @@ -196,6 +202,7 @@ async function updateModelName() {
temporaryModel.value.header.name = newName.value;
}
isRenaming.value = false;
onSave();
}
function updateTemporaryModel(newModel: Model) {
Expand Down

0 comments on commit 4d6034b

Please sign in to comment.