Registered first actions as services

This commit is contained in:
Alejandro Celaya
2018-12-18 04:54:32 +01:00
parent d6e53918a2
commit 12ddeebedf
2 changed files with 9 additions and 8 deletions

View File

@@ -136,10 +136,15 @@ bottle.decorator('DeleteShortUrlModal', connectDecorator(
[ 'shortUrlDeletion' ],
{ deleteShortUrl, resetDeleteShortUrl, shortUrlDeleted }
));
bottle.serviceFactory('editShortUrlTags', editShortUrlTags, 'ShlinkApiClient');
bottle.serviceFactory('resetShortUrlsTags', () => resetShortUrlsTags);
bottle.serviceFactory('shortUrlTagsEdited', () => shortUrlTagsEdited);
bottle.serviceFactory('EditTagsModal', EditTagsModal, 'TagsSelector');
bottle.decorator('EditTagsModal', connectDecorator(
[ 'shortUrlTags' ],
{ editShortUrlTags, resetShortUrlsTags, shortUrlTagsEdited }
[ 'editShortUrlTags', 'resetShortUrlsTags', 'shortUrlTagsEdited' ]
));
export default container;