1
0
Fork 0
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:
Oscar Zhou 2022-12-07 16:15:09 +13:00 committed by GitHub
parent c1cc8bad77
commit dffd45c5f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 51 additions and 18 deletions

View file

@ -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'])