-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove linking references #3614
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,8 +25,6 @@ import EntityTitleSection from '@console/components/entity-title-section' | |
import sharedMessages from '@ttn-lw/lib/shared-messages' | ||
import PropTypes from '@ttn-lw/lib/prop-types' | ||
|
||
import ApplicationStatus from './status' | ||
|
||
const { Content } = EntityTitleSection | ||
|
||
const ApplicationTitleSection = props => { | ||
|
@@ -43,10 +41,6 @@ const ApplicationTitleSection = props => { | |
mayViewCollaborators, | ||
mayViewApiKeys, | ||
mayViewDevices, | ||
mayViewLink, | ||
linked, | ||
linkStats, | ||
lastSeen, | ||
} = props | ||
|
||
return ( | ||
|
@@ -63,9 +57,6 @@ const ApplicationTitleSection = props => { | |
</Spinner> | ||
) : ( | ||
<> | ||
{mayViewLink && ( | ||
<ApplicationStatus linkStats={linkStats} linked={linked} lastSeen={lastSeen} /> | ||
)} | ||
{mayViewDevices && ( | ||
<Content.EntityCount | ||
icon="devices" | ||
|
@@ -110,22 +101,15 @@ ApplicationTitleSection.propTypes = { | |
devicesErrored: PropTypes.bool.isRequired, | ||
devicesTotalCount: PropTypes.number, | ||
fetching: PropTypes.bool.isRequired, | ||
lastSeen: PropTypes.string, | ||
linkStats: PropTypes.applicationLinkStats, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can also edit the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
linked: PropTypes.bool, | ||
mayViewApiKeys: PropTypes.bool.isRequired, | ||
mayViewCollaborators: PropTypes.bool.isRequired, | ||
mayViewDevices: PropTypes.bool.isRequired, | ||
mayViewLink: PropTypes.bool.isRequired, | ||
} | ||
|
||
ApplicationTitleSection.defaultProps = { | ||
linked: undefined, | ||
linkStats: undefined, | ||
apiKeysTotalCount: undefined, | ||
collaboratorsTotalCount: undefined, | ||
devicesTotalCount: undefined, | ||
lastSeen: undefined, | ||
} | ||
|
||
export default ApplicationTitleSection |
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can then also remove the
status
folder. Or can we still fetch up/down counts and last received timestamp fromApplicationLinkStats
? cc @adriansmaresThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ApplicationLinkStats
is deprecated. There are no plans in bringing it back at the moment.