Browse Source

feat(gui-v2): add project title edit page

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/2730/head
Pranav C 2 years ago committed by braks
parent
commit
17955fe981
  1. 2
      packages/nc-gui-v2/pages/project/index/[id].vue
  2. 4
      packages/nc-gui-v2/pages/projects/index/list.vue

2
packages/nc-gui-v2/pages/project/index/[id].vue

@ -76,7 +76,7 @@ onMounted(async () => {
</a-form-item>
<a-form-item style="text-align: center" class="mt-2">
<a-button v-t="['a:project:edit:rename']" type="primary" html-type="submit" class="mx-auto flex justify-self-center">
<a-button type="primary" html-type="submit" class="mx-auto flex justify-self-center">
<MaterialSymbolsRocketLaunchOutline class="mr-1" />
<span> {{ $t('general.edit') }} </span></a-button
>

4
packages/nc-gui-v2/pages/projects/index/list.vue

@ -38,8 +38,8 @@ const openProject = async (project: ProjectType) => {
<div class="font-semibold capitalize">{{ project.title || 'Untitled' }}</div>
<div>{{ project.updated_at }}</div>
<div class="flex justify-center">
<MdiDeleteOutline class="text-gray-500 hover:text-red-500 mr-2" @click.stop @click="emit('delete-project', project)" />
<MdiEditOutline class="text-gray-500 hover:text-primary mr-2" @click.stop />
<MdiDeleteOutline class="text-gray-500 hover:text-red-500 mr-2" @click.stop="emit('delete-project', project)" />
<MdiEditOutline class="text-gray-500 hover:text-primary mr-2" @click.stop="navigateTo(`/project/${project.id}`)" />
</div>
</div>
<v-divider class="col-span-3" />

Loading…
Cancel
Save