renamed NEWRELIC_GUID to NEWRELIC_GUID_ANNOTATION

Signed-off-by: mufaddal motiwala <mufaddalmm.52@gmail.com>
This commit is contained in:
mufaddal motiwala
2021-12-19 16:35:38 +05:30
parent 473cc1ab88
commit e37cad2673
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -19,10 +19,10 @@ import { MissingAnnotationEmptyState } from '@backstage/core-components';
import { Button } from '@material-ui/core';
import { NewRelicDashboard } from './components/NewRelicDashboard';
import { useEntity } from '@backstage/plugin-catalog-react';
import { NEWRELIC_GUID } from './constants';
import { NEWRELIC_GUID_ANNOTATION } from './constants';
export const isNewRelicDashboardAvailable = (entity: Entity) =>
Boolean(entity?.metadata?.annotations?.[NEWRELIC_GUID]);
Boolean(entity?.metadata?.annotations?.[NEWRELIC_GUID_ANNOTATION]);
export const Router = () => {
const { entity } = useEntity();
@@ -33,7 +33,7 @@ export const Router = () => {
return (
<>
<MissingAnnotationEmptyState annotation={NEWRELIC_GUID} />
<MissingAnnotationEmptyState annotation={NEWRELIC_GUID_ANNOTATION} />
<Button variant="contained" color="primary" href="#">
Read New Relic Dashboard Plugin Docs
</Button>
+1 -1
View File
@@ -13,4 +13,4 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export const NEWRELIC_GUID = 'newrelic.com/dashboard-guid';
export const NEWRELIC_GUID_ANNOTATION = 'newrelic.com/dashboard-guid';