Commit 3c433b21 by Tobias Skarhed Committed by GitHub

DashboardManager: Disable editing if there are no folder permissions (#24237)

* Disable editing if there are no folder permissions

* Remove log
parent 92a16d2e
...@@ -100,8 +100,8 @@ export const ManageDashboards: FC<Props> = memo(({ folderId, folderUid }) => { ...@@ -100,8 +100,8 @@ export const ManageDashboards: FC<Props> = memo(({ folderId, folderUid }) => {
<div className={styles.results}> <div className={styles.results}>
<SearchResultsFilter <SearchResultsFilter
allChecked={allChecked} allChecked={allChecked}
canDelete={canDelete} canDelete={hasEditPermissionInFolders && canDelete}
canMove={canMove} canMove={hasEditPermissionInFolders && canMove}
deleteItem={onItemDelete} deleteItem={onItemDelete}
moveTo={onMoveTo} moveTo={onMoveTo}
onToggleAllChecked={onToggleAllChecked} onToggleAllChecked={onToggleAllChecked}
...@@ -115,7 +115,7 @@ export const ManageDashboards: FC<Props> = memo(({ folderId, folderUid }) => { ...@@ -115,7 +115,7 @@ export const ManageDashboards: FC<Props> = memo(({ folderId, folderUid }) => {
<SearchResults <SearchResults
loading={loading} loading={loading}
results={results} results={results}
editable editable={hasEditPermissionInFolders}
onTagSelected={onTagAdd} onTagSelected={onTagAdd}
onToggleSection={onToggleSection} onToggleSection={onToggleSection}
onToggleChecked={onToggleChecked} onToggleChecked={onToggleChecked}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment