From 8763a6b2705be098e0a5b3b454100daad2466944 Mon Sep 17 00:00:00 2001 From: Iris Scholten Date: Tue, 29 May 2018 17:07:29 -0700 Subject: [PATCH] Allow viwer roles or higher to Export a dashboard --- .../dashboards/components/DashboardsTable.tsx | 51 +++++++++++-------- 1 file changed, 29 insertions(+), 22 deletions(-) diff --git a/ui/src/dashboards/components/DashboardsTable.tsx b/ui/src/dashboards/components/DashboardsTable.tsx index b3bf345e42..d1af31734b 100644 --- a/ui/src/dashboards/components/DashboardsTable.tsx +++ b/ui/src/dashboards/components/DashboardsTable.tsx @@ -2,7 +2,7 @@ import React, {PureComponent, MouseEvent} from 'react' import {Link} from 'react-router' import _ from 'lodash' -import Authorized, {EDITOR_ROLE} from 'src/auth/Authorized' +import Authorized, {EDITOR_ROLE, VIEWER_ROLE} from 'src/auth/Authorized' import ConfirmButton from 'src/shared/components/ConfirmButton' import {Dashboard} from 'src/types' @@ -60,33 +60,40 @@ class DashboardsTable extends PureComponent { None )} - } - > - + + } + > - - - - + + } + > + + + + + + ))}