fix: allow creating duplicate of default view
This commit is contained in:
parent
9b12cbaffe
commit
30d9ec39a3
@ -439,8 +439,9 @@ const viewActions = computed(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
function duplicateView() {
|
function duplicateView() {
|
||||||
|
let label = getView(route.query.view)?.label || 'List View'
|
||||||
view.value.name = ''
|
view.value.name = ''
|
||||||
view.value.label = getView(route.query.view).label + ' New'
|
view.value.label = label + ' (New)'
|
||||||
showViewModal.value = true
|
showViewModal.value = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user