mirror of
https://github.com/portainer/portainer.git
synced 2025-08-04 21:35:23 +02:00
refactor(ui): extract TagButton from TagSelector component [EE-4194] (#8127)
This commit is contained in:
parent
c1cc8bad77
commit
dffd45c5f9
5 changed files with 51 additions and 18 deletions
|
@ -34,6 +34,7 @@ import { BadgeIcon } from '@@/BadgeIcon';
|
|||
import { TeamsSelector } from '@@/TeamsSelector';
|
||||
import { PortainerSelect } from '@@/form-components/PortainerSelect';
|
||||
import { Slider } from '@@/form-components/Slider';
|
||||
import { TagButton } from '@@/TagButton';
|
||||
|
||||
import { fileUploadField } from './file-upload-field';
|
||||
import { switchField } from './switch-field';
|
||||
|
@ -45,6 +46,10 @@ export const componentsModule = angular
|
|||
'tagSelector',
|
||||
r2a(withReactQuery(TagSelector), ['allowCreate', 'onChange', 'value'])
|
||||
)
|
||||
.component(
|
||||
'tagButton',
|
||||
r2a(TagButton, ['value', 'label', 'title', 'onRemove'])
|
||||
)
|
||||
.component(
|
||||
'portainerTooltip',
|
||||
r2a(Tooltip, ['message', 'position', 'className'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue