From 3a678a4d0c068d567bf40b40fef533125eace51d Mon Sep 17 00:00:00 2001 From: Sven Grossmann Date: Fri, 30 Jun 2023 15:33:40 +0200 Subject: [PATCH] Logs: Add pinning icon in log context (#70945) add pinning icon --- packages/grafana-data/src/types/icon.ts | 1 + public/app/features/logs/components/LogRowMessage.tsx | 6 +++--- public/img/icons/custom/gf-pin.svg | 4 ++++ 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 public/img/icons/custom/gf-pin.svg diff --git a/packages/grafana-data/src/types/icon.ts b/packages/grafana-data/src/types/icon.ts index d52de760053ef..1c880e2279114 100644 --- a/packages/grafana-data/src/types/icon.ts +++ b/packages/grafana-data/src/types/icon.ts @@ -124,6 +124,7 @@ export const availableIconsIndex = { 'gf-portrait': true, 'gf-service-account': true, 'gf-show-context': true, + 'gf-pin': true, grafana: true, 'graph-bar': true, 'grafana-ml': true, diff --git a/public/app/features/logs/components/LogRowMessage.tsx b/public/app/features/logs/components/LogRowMessage.tsx index d3055a9b972d2..411800609ddd7 100644 --- a/public/app/features/logs/components/LogRowMessage.tsx +++ b/public/app/features/logs/components/LogRowMessage.tsx @@ -119,7 +119,7 @@ export class LogRowMessage extends PureComponent { onUnpinLine && onUnpinLine(row)} tooltip="Unpin line" tooltipPlacement="top" @@ -152,7 +152,7 @@ export class LogRowMessage extends PureComponent { onUnpinLine && onUnpinLine(row)} tooltip="Unpin line" tooltipPlacement="top" @@ -163,7 +163,7 @@ export class LogRowMessage extends PureComponent { onPinLine && onPinLine(row)} tooltip="Pin line" tooltipPlacement="top" diff --git a/public/img/icons/custom/gf-pin.svg b/public/img/icons/custom/gf-pin.svg new file mode 100644 index 0000000000000..70c45e48f0224 --- /dev/null +++ b/public/img/icons/custom/gf-pin.svg @@ -0,0 +1,4 @@ + + +