Updated tags list to display visits and short URLs when remote shlink version allows it

This commit is contained in:
Alejandro Celaya
2020-05-10 10:57:49 +02:00
parent 8741f42fe8
commit 18e026e4ca
13 changed files with 143 additions and 46 deletions

View File

@@ -33,7 +33,7 @@ const SortingDropdown = ({ items, orderField, orderDir, onChange, isButton, righ
<DropdownToggle
caret
color={isButton ? 'secondary' : 'link'}
className={classNames({ 'btn-block': isButton, 'btn-sm paddingless': !isButton })}
className={classNames({ 'btn-block': isButton, 'btn-sm p-0': !isButton })}
>
Order by
</DropdownToggle>

View File

@@ -53,8 +53,8 @@ export default class ShlinkApiClient {
.then(() => meta);
listTags = () =>
this._performRequest('/tags', 'GET')
.then((resp) => resp.data.tags.data);
this._performRequest('/tags', 'GET', { withStats: 'true' })
.then((resp) => resp.data.tags);
deleteTags = (tags) =>
this._performRequest('/tags', 'DELETE', { tags })