diff --git a/.betterer.results b/.betterer.results
index 70e7333515a..d160169ff8c 100644
--- a/.betterer.results
+++ b/.betterer.results
@@ -4740,10 +4740,8 @@ exports[`better eslint`] = {
],
"public/app/features/provisioning/File/FilesView.tsx:5381": [
[0, 0, 0, "No untranslated strings in text props. Wrap text with or use t()", "0"],
- [0, 0, 0, "No untranslated strings in text props. Wrap text with or use t()", "1"],
- [0, 0, 0, "No untranslated strings. Wrap text with ", "2"],
- [0, 0, 0, "No untranslated strings. Wrap text with ", "3"],
- [0, 0, 0, "No untranslated strings. Wrap text with ", "4"]
+ [0, 0, 0, "No untranslated strings. Wrap text with ", "1"],
+ [0, 0, 0, "No untranslated strings. Wrap text with ", "2"]
],
"public/app/features/provisioning/GettingStarted/EnhancedFeatures.tsx:5381": [
[0, 0, 0, "Do not use any type assertions.", "0"],
@@ -4844,11 +4842,9 @@ exports[`better eslint`] = {
],
"public/app/features/provisioning/Repository/RepositoryResources.tsx:5381": [
[0, 0, 0, "No untranslated strings in text props. Wrap text with or use t()", "0"],
- [0, 0, 0, "No untranslated strings in text props. Wrap text with or use t()", "1"],
+ [0, 0, 0, "No untranslated strings. Wrap text with ", "1"],
[0, 0, 0, "No untranslated strings. Wrap text with ", "2"],
- [0, 0, 0, "No untranslated strings. Wrap text with ", "3"],
- [0, 0, 0, "No untranslated strings. Wrap text with ", "4"],
- [0, 0, 0, "No untranslated strings. Wrap text with ", "5"]
+ [0, 0, 0, "No untranslated strings. Wrap text with ", "3"]
],
"public/app/features/provisioning/Repository/RepositoryStatusPage.tsx:5381": [
[0, 0, 0, "No untranslated strings in text props. Wrap text with or use t()", "0"],
diff --git a/public/app/features/provisioning/File/FilesView.tsx b/public/app/features/provisioning/File/FilesView.tsx
index 499ec6e9cd9..93cf588241e 100644
--- a/public/app/features/provisioning/File/FilesView.tsx
+++ b/public/app/features/provisioning/File/FilesView.tsx
@@ -1,21 +1,7 @@
import { useState } from 'react';
-import {
- Button,
- CellProps,
- Column,
- ConfirmModal,
- FilterInput,
- InteractiveTable,
- LinkButton,
- Spinner,
- Stack,
-} from '@grafana/ui';
-import {
- Repository,
- useGetRepositoryFilesQuery,
- useDeleteRepositoryFilesWithPathMutation,
-} from 'app/api/clients/provisioning';
+import { CellProps, Column, FilterInput, InteractiveTable, LinkButton, Spinner, Stack } from '@grafana/ui';
+import { Repository, useGetRepositoryFilesQuery } from 'app/api/clients/provisioning';
import { PROVISIONING_URL } from '../constants';
import { FileDetails } from '../types';
@@ -29,10 +15,7 @@ type FileCell = CellProps();
const data = [...(query.data?.items ?? [])].filter((file) =>
file.path.toLowerCase().includes(searchQuery.toLowerCase())
);
@@ -72,9 +55,6 @@ export function FilesView({ repo }: FilesViewProps) {
View
)}
History
-
);
},
@@ -91,22 +71,6 @@ export function FilesView({ repo }: FilesViewProps) {
return (
- {
- deleteFile({
- name: name,
- path: pathToDelete!,
- message: `Deleted from repo test UI`,
- });
- setPathToDelete('');
- }}
- onDismiss={() => setPathToDelete('')}
- />
diff --git a/public/app/features/provisioning/Repository/RepositoryResources.tsx b/public/app/features/provisioning/Repository/RepositoryResources.tsx
index 121bde0881b..aff409f9ec7 100644
--- a/public/app/features/provisioning/Repository/RepositoryResources.tsx
+++ b/public/app/features/provisioning/Repository/RepositoryResources.tsx
@@ -1,23 +1,7 @@
import { useMemo, useState } from 'react';
-import {
- Column,
- CellProps,
- Link,
- Stack,
- Spinner,
- FilterInput,
- InteractiveTable,
- LinkButton,
- ConfirmModal,
- Button,
-} from '@grafana/ui';
-import {
- Repository,
- ResourceListItem,
- useGetRepositoryResourcesQuery,
- useDeleteRepositoryFilesWithPathMutation,
-} from 'app/api/clients/provisioning';
+import { CellProps, Column, FilterInput, InteractiveTable, Link, LinkButton, Spinner, Stack } from '@grafana/ui';
+import { Repository, ResourceListItem, useGetRepositoryResourcesQuery } from 'app/api/clients/provisioning';
import { PROVISIONING_URL } from '../constants';
@@ -34,8 +18,6 @@ export function RepositoryResources({ repo }: RepoProps) {
const name = repo.metadata?.name ?? '';
const query = useGetRepositoryResourcesQuery({ name });
const [searchQuery, setSearchQuery] = useState('');
- const [deleteFile, deleteFileStatus] = useDeleteRepositoryFilesWithPathMutation();
- const [pathToDelete, setPathToDelete] = useState();
const data = (query.data?.items ?? []).filter((Resource) =>
Resource.path.toLowerCase().includes(searchQuery.toLowerCase())
);
@@ -107,9 +89,6 @@ export function RepositoryResources({ repo }: RepoProps) {
{resource === 'dashboards' && View}
{resource === 'folders' && View}
History
-
);
},
@@ -128,24 +107,6 @@ export function RepositoryResources({ repo }: RepoProps) {
return (
- {
- if (pathToDelete) {
- deleteFile({
- name: name,
- path: pathToDelete,
- message: `Deleted from repo test UI`,
- });
- setPathToDelete('');
- }
- }}
- onDismiss={() => setPathToDelete('')}
- />