Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
Remove protobuf notification (#440)
Browse files Browse the repository at this point in the history
* remove protobuf notification

* 2.28.6

* fix warnings
  • Loading branch information
jacekkolasa authored Aug 23, 2022
1 parent 9cfb9f0 commit 04ec295
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 108 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@netdata/dashboard",
"version": "2.28.5",
"version": "2.28.6",
"homepage": ".",
"main": "./lib/src/index-npm.js",
"files": [
Expand Down
2 changes: 0 additions & 2 deletions src/components/header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import styled from "styled-components"
import { Flex, Box } from "@netdata/netdata-ui"
import Node from "./node"
import Options from "./options"
import ProtoBuf from "./protoBuf"
import Version from "./version"
import GlobalControls from "./globalControls"
import Alarms from "./alarms"
Expand Down Expand Up @@ -35,7 +34,6 @@ const Header = () => (
<Version />
<News />
<Options />
<ProtoBuf />
<Timezone />
<GlobalControls />
<Alarms />
Expand Down
15 changes: 0 additions & 15 deletions src/components/header/protoBuf/dropdown.js

This file was deleted.

83 changes: 0 additions & 83 deletions src/components/header/protoBuf/index.js

This file was deleted.

3 changes: 1 addition & 2 deletions src/domains/chart/components/lib-charts/dygraph-chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { DygraphArea, NetdataDygraph } from "types/vendor-overrides"
import { TimeRange } from "types/common"
import { useDateTime } from "utils/date-time"
import { debounce } from "utils/debounce"
import { hasHashParam } from "utils/hash-utils"

import {
selectCommonMin,
Expand Down Expand Up @@ -748,7 +747,7 @@ export const DygraphChart = ({
const w = g.toDomCoords(g.xAxisRange()[1], null)[0] - axisAfterOffset

// Percentage from the left.
return w == 0 ? 0 : x / w
return w === 0 ? 0 : x / w
}

const normalDef =
Expand Down
4 changes: 0 additions & 4 deletions src/domains/global/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,6 @@ export const selectIsCloudEnabled = createSelector(
)
export const selectHasFetchedInfo = createSelector(selectRegistry, prop("hasFetchedInfo"))
export const selectFullInfoPayload = createSelector(selectRegistry, prop("fullInfoPayload"))
export const selectLacksProtoBufSupport = createSelector(
selectFullInfoPayload,
info => info["agent-claimed"] && !info["aclk-ng-new-cloud-protocol"]
)

export const selectHasStartedAlarms = createSelector(
selectGlobal,
Expand Down

0 comments on commit 04ec295

Please sign in to comment.