File tree 14 files changed +70
-70
lines changed
entities-certificates/src/components
entities-consumer-credentials/src/components
entities-consumer-groups/src/components
entities-consumers/src/components
entities-gateway-services/src/components
entities-key-sets/src/components
entities-keys/src/components
entities-plugins/src/components
entities-routes/src/components
entities-snis/src/components
entities-upstreams-targets/src/components
entities-vaults/src/components
14 files changed +70
-70
lines changed Original file line number Diff line number Diff line change 27
27
</template >
28
28
<!-- Create action -->
29
29
<template #toolbar-button >
30
- <!-- Hide Create button if table is empty -->
31
- <Teleport
32
- :disabled =" !useActionOutside"
33
- to =" #kong-ui-app-page-header-action-button"
30
+ <component
31
+ :is =" useActionOutside ? 'Teleport' : 'div'"
32
+ :to =" useActionOutside ? '#kong-ui-app-page-header-action-button' : undefined"
34
33
>
35
34
<PermissionsWrapper :auth-function =" () => canCreate()" >
35
+ <!-- Hide Create button if table is empty -->
36
36
<KButton
37
37
v-show =" hasData"
38
38
appearance =" primary"
43
43
{{ t('ca-certificates.list.toolbar_actions.new_ca_certificate') }}
44
44
</KButton >
45
45
</PermissionsWrapper >
46
- </Teleport >
46
+ </component >
47
47
</template >
48
48
49
49
<!-- Column Formatting -->
Original file line number Diff line number Diff line change 27
27
</template >
28
28
<!-- Create action -->
29
29
<template #toolbar-button >
30
- <!-- Hide Create button if table is empty -->
31
- <Teleport
32
- :disabled =" !useActionOutside"
33
- to =" #kong-ui-app-page-header-action-button"
30
+ <component
31
+ :is =" useActionOutside ? 'Teleport' : 'div'"
32
+ :to =" useActionOutside ? '#kong-ui-app-page-header-action-button' : undefined"
34
33
>
35
34
<PermissionsWrapper :auth-function =" () => canCreate()" >
35
+ <!-- Hide Create button if table is empty -->
36
36
<KButton
37
37
v-show =" hasData"
38
38
appearance =" primary"
43
43
{{ t('certificates.list.toolbar_actions.new_certificate') }}
44
44
</KButton >
45
45
</PermissionsWrapper >
46
- </Teleport >
46
+ </component >
47
47
</template >
48
48
49
49
<!-- Column Formatting -->
Original file line number Diff line number Diff line change 18
18
>
19
19
<!-- Create action -->
20
20
<template #toolbar-button >
21
- <!-- Hide Create button if table is empty -->
22
- <Teleport
23
- :disabled =" !useActionOutside"
24
- to =" #kong-ui-app-page-header-action-button"
21
+ <component
22
+ :is =" useActionOutside ? 'Teleport' : 'div'"
23
+ :to =" useActionOutside ? '#kong-ui-app-page-header-action-button' : undefined"
25
24
>
26
25
<PermissionsWrapper :auth-function =" () => canCreate()" >
26
+ <!-- Hide Create button if table is empty -->
27
27
<KButton
28
28
v-show =" hasData"
29
29
appearance =" primary"
34
34
{{ t(`credentials.list.toolbar_actions.${config.plugin}.new`) }}
35
35
</KButton >
36
36
</PermissionsWrapper >
37
- </Teleport >
37
+ </component >
38
38
</template >
39
39
40
40
<!-- Column Formatting -->
Original file line number Diff line number Diff line change 31
31
</template >
32
32
<!-- Create action -->
33
33
<template #toolbar-button >
34
- <!-- Hide Create button if table is empty -->
35
- <Teleport
36
- :disabled =" !useActionOutside"
37
- to =" #kong-ui-app-page-header-action-button"
34
+ <component
35
+ :is =" useActionOutside ? 'Teleport' : 'div'"
36
+ :to =" useActionOutside ? '#kong-ui-app-page-header-action-button' : undefined"
38
37
>
39
38
<PermissionsWrapper :auth-function =" () => canCreate()" >
39
+ <!-- Hide Create button if table is empty -->
40
40
<KButton
41
41
v-show =" hasData"
42
42
appearance =" primary"
48
48
{{ config.consumerId ? t('consumer_groups.actions.add_to_group') : t('consumer_groups.list.toolbar_actions.new_consumer_group') }}
49
49
</KButton >
50
50
</PermissionsWrapper >
51
- </Teleport >
51
+ </component >
52
52
</template >
53
53
54
54
<!-- Column Formatting -->
Original file line number Diff line number Diff line change 31
31
</template >
32
32
<!-- Create action -->
33
33
<template #toolbar-button >
34
- <!-- Hide Create button if table is empty -->
35
- <Teleport
36
- :disabled =" !useActionOutside"
37
- to =" #kong-ui-app-page-header-action-button"
34
+ <component
35
+ :is =" useActionOutside ? 'Teleport' : 'div'"
36
+ :to =" useActionOutside ? '#kong-ui-app-page-header-action-button' : undefined"
38
37
>
39
38
<PermissionsWrapper :auth-function =" () => canCreate()" >
39
+ <!-- Hide Create button if table is empty -->
40
40
<KButton
41
41
v-show =" hasData"
42
42
appearance =" primary"
48
48
{{ config.consumerGroupId ? t('consumers.actions.add_consumer') : t('consumers.list.toolbar_actions.new_consumer') }}
49
49
</KButton >
50
50
</PermissionsWrapper >
51
- </Teleport >
51
+ </component >
52
52
</template >
53
53
54
54
<!-- Column Formatting -->
Original file line number Diff line number Diff line change 27
27
</template >
28
28
<!-- Create action -->
29
29
<template #toolbar-button >
30
- <!-- Hide Create button if table is empty -->
31
- <Teleport
32
- :disabled =" !useActionOutside"
33
- to =" #kong-ui-app-page-header-action-button"
30
+ <component
31
+ :is =" useActionOutside ? 'Teleport' : 'div'"
32
+ :to =" useActionOutside ? '#kong-ui-app-page-header-action-button' : undefined"
34
33
>
35
34
<PermissionsWrapper :auth-function =" () => canCreate()" >
35
+ <!-- Hide Create button if table is empty -->
36
36
<KButton
37
37
v-show =" hasData"
38
38
appearance =" primary"
43
43
{{ t('gateway_services.list.toolbar_actions.new_gateway_service') }}
44
44
</KButton >
45
45
</PermissionsWrapper >
46
- </Teleport >
46
+ </component >
47
47
</template >
48
48
49
49
<!-- Column Formatting -->
Original file line number Diff line number Diff line change 27
27
</template >
28
28
<!-- Create action -->
29
29
<template #toolbar-button >
30
- <!-- Hide Create button if table is empty -->
31
- <Teleport
32
- :disabled =" !useActionOutside"
33
- to =" #kong-ui-app-page-header-action-button"
30
+ <component
31
+ :is =" useActionOutside ? 'Teleport' : 'div'"
32
+ :to =" useActionOutside ? '#kong-ui-app-page-header-action-button' : undefined"
34
33
>
35
34
<PermissionsWrapper :auth-function =" () => canCreate()" >
35
+ <!-- Hide Create button if table is empty -->
36
36
<KButton
37
37
v-show =" hasData"
38
38
appearance =" primary"
43
43
{{ t('keySets.list.toolbar_actions.new_key_set') }}
44
44
</KButton >
45
45
</PermissionsWrapper >
46
- </Teleport >
46
+ </component >
47
47
</template >
48
48
49
49
<!-- Column Formatting -->
Original file line number Diff line number Diff line change 27
27
</template >
28
28
<!-- Create action -->
29
29
<template #toolbar-button >
30
- <!-- Hide Create button if table is empty -->
31
- <Teleport
32
- :disabled =" !useActionOutside"
33
- to =" #kong-ui-app-page-header-action-button"
30
+ <component
31
+ :is =" useActionOutside ? 'Teleport' : 'div'"
32
+ :to =" useActionOutside ? '#kong-ui-app-page-header-action-button' : undefined"
34
33
>
35
34
<PermissionsWrapper :auth-function =" () => canCreate()" >
35
+ <!-- Hide Create button if table is empty -->
36
36
<KButton
37
37
v-show =" hasData"
38
38
appearance =" primary"
43
43
{{ t('keys.list.toolbar_actions.new_key') }}
44
44
</KButton >
45
45
</PermissionsWrapper >
46
- </Teleport >
46
+ </component >
47
47
</template >
48
48
49
49
<!-- Column Formatting -->
Original file line number Diff line number Diff line change 29
29
</template >
30
30
<!-- Create action -->
31
31
<template #toolbar-button >
32
- <!-- Hide Create button if table is empty -->
33
- <Teleport
34
- :disabled =" !useActionOutside"
35
- to =" #kong-ui-app-page-header-action-button"
32
+ <component
33
+ :is =" useActionOutside ? 'Teleport' : 'div'"
34
+ :to =" useActionOutside ? '#kong-ui-app-page-header-action-button' : undefined"
36
35
>
37
36
<PermissionsWrapper :auth-function =" () => canCreate()" >
37
+ <!-- Hide Create button if table is empty -->
38
38
<KButton
39
39
v-show =" hasData"
40
40
appearance =" primary"
45
45
{{ t('plugins.list.toolbar_actions.new_plugin') }}
46
46
</KButton >
47
47
</PermissionsWrapper >
48
- </Teleport >
48
+ </component >
49
49
</template >
50
50
51
51
<!-- Column Formatting -->
Original file line number Diff line number Diff line change 28
28
</template >
29
29
<!-- Create action -->
30
30
<template #toolbar-button >
31
- <!-- Hide Create button if table is empty -->
32
- <Teleport
33
- :disabled =" !useActionOutside"
34
- to =" #kong-ui-app-page-header-action-button"
31
+ <component
32
+ :is =" useActionOutside ? 'Teleport' : 'div'"
33
+ :to =" useActionOutside ? '#kong-ui-app-page-header-action-button' : undefined"
35
34
>
36
35
<PermissionsWrapper :auth-function =" () => canCreate()" >
36
+ <!-- Hide Create button if table is empty -->
37
37
<KButton
38
38
v-show =" hasData"
39
39
appearance =" primary"
44
44
{{ t('routes.list.toolbar_actions.new_route') }}
45
45
</KButton >
46
46
</PermissionsWrapper >
47
- </Teleport >
47
+ </component >
48
48
</template >
49
49
50
50
<!-- Column Formatting -->
Original file line number Diff line number Diff line change 28
28
</template >
29
29
<!-- Create action -->
30
30
<template #toolbar-button >
31
- <!-- Hide Create button if table is empty -->
32
- <Teleport
33
- :disabled =" !useActionOutside"
34
- to =" #kong-ui-app-page-header-action-button"
31
+ <component
32
+ :is =" useActionOutside ? 'Teleport' : 'div'"
33
+ :to =" useActionOutside ? '#kong-ui-app-page-header-action-button' : undefined"
35
34
>
36
35
<PermissionsWrapper :auth-function =" () => canCreate()" >
36
+ <!-- Hide Create button if table is empty -->
37
37
<KButton
38
38
v-show =" hasData"
39
39
appearance =" primary"
44
44
{{ t('snis.list.toolbar_actions.new') }}
45
45
</KButton >
46
46
</PermissionsWrapper >
47
- </Teleport >
47
+ </component >
48
48
</template >
49
49
50
50
<!-- Column Formatting -->
Original file line number Diff line number Diff line change 18
18
>
19
19
<!-- Create action -->
20
20
<template #toolbar-button >
21
- <!-- Hide Create button if table is empty -->
22
- <Teleport
23
- :disabled =" !useActionOutside"
24
- to =" #kong-ui-app-page-header-action-button"
21
+ <component
22
+ :is =" useActionOutside ? 'Teleport' : 'div'"
23
+ :to =" useActionOutside ? '#kong-ui-app-page-header-action-button' : undefined"
25
24
>
26
25
<PermissionsWrapper :auth-function =" () => canCreate()" >
26
+ <!-- Hide Create button if table is empty -->
27
27
<KButton
28
28
v-show =" hasData"
29
29
appearance =" primary"
35
35
{{ t('targets.list.toolbar_actions.new_target') }}
36
36
</KButton >
37
37
</PermissionsWrapper >
38
- </Teleport >
38
+ </component >
39
39
</template >
40
40
41
41
<!-- Column formatting -->
Original file line number Diff line number Diff line change 28
28
29
29
<!-- Create action -->
30
30
<template #toolbar-button >
31
- <!-- Hide Create button if table is empty -->
32
- <Teleport
33
- :disabled =" !useActionOutside"
34
- to =" #kong-ui-app-page-header-action-button"
31
+ <component
32
+ :is =" useActionOutside ? 'Teleport' : 'div'"
33
+ :to =" useActionOutside ? '#kong-ui-app-page-header-action-button' : undefined"
35
34
>
36
35
<PermissionsWrapper :auth-function =" () => canCreate()" >
36
+ <!-- Hide Create button if table is empty -->
37
37
<KButton
38
38
v-show =" hasData"
39
39
appearance =" primary"
44
44
{{ t('upstreams.list.toolbar_actions.new_upstream') }}
45
45
</KButton >
46
46
</PermissionsWrapper >
47
- </Teleport >
47
+ </component >
48
48
</template >
49
49
50
50
<!-- Column formatting -->
Original file line number Diff line number Diff line change 27
27
</template >
28
28
<!-- Create action -->
29
29
<template #toolbar-button >
30
- <!-- Hide Create button if table is empty -->
31
- <Teleport
32
- :disabled =" !useActionOutside"
33
- to =" #kong-ui-app-page-header-action-button"
30
+ <component
31
+ :is =" useActionOutside ? 'Teleport' : 'div'"
32
+ :to =" useActionOutside ? '#kong-ui-app-page-header-action-button' : undefined"
34
33
>
35
34
<PermissionsWrapper :auth-function =" () => canCreate()" >
35
+ <!-- Hide Create button if table is empty -->
36
36
<KButton
37
37
v-show =" hasData"
38
38
appearance =" primary"
43
43
{{ t('vaults.list.toolbar_actions.new_vault') }}
44
44
</KButton >
45
45
</PermissionsWrapper >
46
- </Teleport >
46
+ </component >
47
47
</template >
48
48
49
49
<!-- Column Formatting -->
You can’t perform that action at this time.
0 commit comments