Browse Source

fix(gui-v2): prevent deleting default view

pull/2837/head
braks 2 years ago
parent
commit
c0deb1aee6
  1. 6
      packages/nc-gui-v2/components/smartsheet/Sidebar.vue

6
packages/nc-gui-v2/components/smartsheet/Sidebar.vue

@ -234,14 +234,10 @@ async function onRename(index: number) {
order: (view as any).order,
})
console.log('rename success')
notification.success({
message: 'View renamed successfully',
duration: 3,
})
console.log('success')
} catch (e: any) {
notification.error({
message: await extractSdkResponseErrorMsg(e),
@ -301,7 +297,7 @@ function onApiSnippet() {
<div class="flex-1" />
<template v-if="isEditing !== i">
<template v-if="isEditing !== i && !view.is_default">
<div class="flex items-center gap-1">
<a-tooltip placement="left">
<template #title>

Loading…
Cancel
Save