Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
3aa3fa3e
Unverified
Commit
3aa3fa3e
authored
Mar 03, 2020
by
Alexander Zobnin
Committed by
GitHub
Mar 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Chore: add missing aria-label for rendered panel image (e2e tests) (#22543)
parent
3a5375dd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
public/app/features/dashboard/components/ShareModal/ShareLink.tsx
+3
-2
No files found.
public/app/features/dashboard/components/ShareModal/ShareLink.tsx
View file @
3aa3fa3e
import
React
,
{
PureComponent
}
from
'react'
;
import
React
,
{
PureComponent
}
from
'react'
;
import
{
e2e
}
from
'@grafana/e2e'
;
import
{
Switch
,
Select
,
ClipboardButton
}
from
'@grafana/ui'
;
import
{
Switch
,
Select
,
ClipboardButton
}
from
'@grafana/ui'
;
import
{
SelectableValue
,
PanelModel
,
AppEvents
}
from
'@grafana/data'
;
import
{
SelectableValue
,
PanelModel
,
AppEvents
}
from
'@grafana/data'
;
import
{
DashboardModel
}
from
'app/features/dashboard/state'
;
import
{
DashboardModel
}
from
'app/features/dashboard/state'
;
...
@@ -83,6 +84,7 @@ export class ShareLink extends PureComponent<Props, State> {
...
@@ -83,6 +84,7 @@ export class ShareLink extends PureComponent<Props, State> {
render
()
{
render
()
{
const
{
panel
}
=
this
.
props
;
const
{
panel
}
=
this
.
props
;
const
{
useCurrentTimeRange
,
includeTemplateVars
,
selectedTheme
,
shareUrl
,
imageUrl
}
=
this
.
state
;
const
{
useCurrentTimeRange
,
includeTemplateVars
,
selectedTheme
,
shareUrl
,
imageUrl
}
=
this
.
state
;
const
selectors
=
e2e
.
pages
.
SharePanelModal
.
selectors
;
return
(
return
(
<
div
className=
"share-modal-body"
>
<
div
className=
"share-modal-body"
>
...
@@ -122,14 +124,13 @@ export class ShareLink extends PureComponent<Props, State> {
...
@@ -122,14 +124,13 @@ export class ShareLink extends PureComponent<Props, State> {
<
ClipboardButton
variant=
"inverse"
getText=
{
this
.
getShareUrl
}
onClipboardCopy=
{
this
.
onShareUrlCopy
}
>
<
ClipboardButton
variant=
"inverse"
getText=
{
this
.
getShareUrl
}
onClipboardCopy=
{
this
.
onShareUrlCopy
}
>
Copy
Copy
</
ClipboardButton
>
</
ClipboardButton
>
{
/* <button className="btn btn-inverse" clipboard-button="getShareUrl()">Copy</button> */
}
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
{
panel
&&
(
{
panel
&&
(
<
div
className=
"gf-form"
>
<
div
className=
"gf-form"
>
<
a
href=
{
imageUrl
}
target=
"_blank"
>
<
a
href=
{
imageUrl
}
target=
"_blank"
aria
-
label=
{
selectors
.
linkToRenderedImage
}
>
<
i
className=
"fa fa-camera"
></
i
>
Direct link rendered image
<
i
className=
"fa fa-camera"
></
i
>
Direct link rendered image
</
a
>
</
a
>
</
div
>
</
div
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment