feat: improve UI display depending on user persmissions
This commit is contained in:

committed by
Ali BARIN

parent
017a881494
commit
5d2e9ccc67
@@ -84,10 +84,14 @@ export default function Applications() {
|
||||
)}
|
||||
|
||||
{!isLoading && !hasApps && (
|
||||
<NoResultFound
|
||||
text={formatMessage('apps.noConnections')}
|
||||
to={URLS.NEW_APP_CONNECTION}
|
||||
/>
|
||||
<Can I="create" a="Connection" passThrough>
|
||||
{(allowed) => (
|
||||
<NoResultFound
|
||||
text={formatMessage('apps.noConnections')}
|
||||
{...(allowed && { to: URLS.NEW_APP_CONNECTION })}
|
||||
/>
|
||||
)}
|
||||
</Can>
|
||||
)}
|
||||
|
||||
{!isLoading &&
|
||||
|
Reference in New Issue
Block a user