fix: added action to create new view in view dropdown
This commit is contained in:
parent
2b85de294c
commit
b519e2a44e
@ -567,6 +567,18 @@ const viewsDropdownOptions = computed(() => {
|
||||
})
|
||||
}
|
||||
|
||||
_views.push({
|
||||
group: __('Actions'),
|
||||
hideLabel: true,
|
||||
items: [
|
||||
{
|
||||
label: __('Create View'),
|
||||
icon: 'plus',
|
||||
onClick: () => createView(),
|
||||
},
|
||||
],
|
||||
})
|
||||
|
||||
return _views
|
||||
})
|
||||
|
||||
@ -932,6 +944,13 @@ const viewActions = computed(() => {
|
||||
|
||||
const viewModalObj = ref({})
|
||||
|
||||
function createView() {
|
||||
view.value.name = ''
|
||||
view.value.label = ''
|
||||
viewModalObj.value = view.value
|
||||
showViewModal.value = true
|
||||
}
|
||||
|
||||
function duplicateView() {
|
||||
let label =
|
||||
__(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user