renamed NEWRELIC_GUID to NEWRELIC_GUID_ANNOTATION
Signed-off-by: mufaddal motiwala <mufaddalmm.52@gmail.com>
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user