Skip to content

Commit 676cc87

Browse files
authored
Merge pull request #2254 from nextcloud/backport/2252/stable4
2 parents cb965e2 + af6dddf commit 676cc87

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/components/Actions/Actions.vue

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -225,25 +225,9 @@ import DotsHorizontal from 'vue-material-design-icons/DotsHorizontal'
225225
226226
import Tooltip from '../../directives/Tooltip'
227227
import GenRandomId from '../../utils/GenRandomId'
228-
import ValidateSlot from '../../utils/ValidateSlot'
229228
import { t } from '../../l10n'
230229
import Popover from '../Popover'
231230
232-
// This is the list of ALL the ALLOWED components
233-
// in the default SLOT
234-
const allowedChildren = [
235-
'ActionButton',
236-
'ActionCheckbox',
237-
'ActionInput',
238-
'ActionLink',
239-
'ActionRadio',
240-
'ActionRouter',
241-
'ActionSeparator',
242-
'ActionText',
243-
'ActionTextEditable',
244-
'ActionCaption',
245-
]
246-
247231
const focusableSelector = '.focusable'
248232
249233
/**
@@ -484,9 +468,6 @@ export default {
484468
beforeMount() {
485469
// init actions
486470
this.initActions()
487-
488-
// filter invalid menu items
489-
ValidateSlot(this.$slots.default, allowedChildren, this)
490471
},
491472
beforeUpdate() {
492473
// ! since we're using $slots to manage our actions
@@ -497,7 +478,6 @@ export default {
497478
// and the array is now reactive
498479
// init actions
499480
this.initActions()
500-
ValidateSlot(this.$slots.default, allowedChildren, this)
501481
},
502482
503483
methods: {

0 commit comments

Comments
 (0)