Browse Source

feat: show previous title on project rename

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/4726/head
mertmit 2 years ago
parent
commit
4ed58539a0
  1. 10
      packages/nc-gui/pages/index/index/[projectId].vue

10
packages/nc-gui/pages/index/index/[projectId].vue

@ -16,9 +16,7 @@ import {
const route = useRoute()
const { loadProject, updateProject, isLoading } = useProject()
loadProject(false)
const { project, loadProject, updateProject, isLoading } = useProject()
const nameValidationRules = [
{
@ -44,6 +42,12 @@ const renameProject = async () => {
}
}
onBeforeMount(async () => {
await loadProject(false)
formState.title = project.value?.title
})
const focus: VNodeRef = (el) => (el as HTMLInputElement)?.focus()
</script>

Loading…
Cancel
Save