fix: revert removing routeRef

Signed-off-by: Isaiah Thiessen <isaiah.thiessen@telus.com>
This commit is contained in:
Isaiah Thiessen
2022-06-09 15:57:44 -07:00
parent 6f475edfb6
commit 65e7a42701
2 changed files with 25 additions and 3 deletions
+5 -3
View File
@@ -25,7 +25,9 @@ import {
import { Entity } from '@backstage/catalog-model';
import { DYNATRACE_ID_ANNOTATION } from './constants';
// @public
import { rootRouteRef } from './routes';
// @public (undocumented)
export const dynatracePlugin = createPlugin({
id: 'dynatrace',
apis: [
@@ -44,11 +46,11 @@ export const dynatracePlugin = createPlugin({
],
});
// @public
// @public (undocumented)
export const isDynatraceAvailable = (entity: Entity) =>
Boolean(entity.metadata.annotations?.[DYNATRACE_ID_ANNOTATION]);
// @public
// @public (undocumented)
export const DynatraceTab = dynatracePlugin.provide(
createRoutableExtension({
name: 'DynatraceTab',
+20
View File
@@ -0,0 +1,20 @@
/*
* Copyright 2022 The Backstage Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { createRouteRef } from '@backstage/core-plugin-api';
export const rootRouteRef = createRouteRef({
id: 'dynatrace',
});