Skip to content

Commit

Permalink
Logs: Add pinning icon in log context (#70945)
Browse files Browse the repository at this point in the history
add pinning icon
  • Loading branch information
svennergr authored and harisrozajac committed Jun 30, 2023
1 parent 80140c7 commit 3a678a4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/grafana-data/src/types/icon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions public/app/features/logs/components/LogRowMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export class LogRowMessage extends PureComponent<Props> {
<IconButton
className={styles.unPinButton}
size="md"
name="map-marker-minus"
name="gf-pin"
onClick={() => onUnpinLine && onUnpinLine(row)}
tooltip="Unpin line"
tooltipPlacement="top"
Expand Down Expand Up @@ -152,7 +152,7 @@ export class LogRowMessage extends PureComponent<Props> {
<IconButton
className={styles.unPinButton}
size="md"
name="map-marker-minus"
name="gf-pin"
onClick={() => onUnpinLine && onUnpinLine(row)}
tooltip="Unpin line"
tooltipPlacement="top"
Expand All @@ -163,7 +163,7 @@ export class LogRowMessage extends PureComponent<Props> {
<IconButton
className={styles.unPinButton}
size="md"
name="map-marker-plus"
name="gf-pin"
onClick={() => onPinLine && onPinLine(row)}
tooltip="Pin line"
tooltipPlacement="top"
Expand Down
4 changes: 4 additions & 0 deletions public/img/icons/custom/gf-pin.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3a678a4

Please sign in to comment.