Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mwangggg committed Oct 20, 2023
1 parent 6832177 commit 5469545
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
2 changes: 0 additions & 2 deletions src/app/SecurityPanel/Credentials/StoreCredentials.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import {
DropdownToggleCheckbox,
EmptyState,
EmptyStateIcon,
Icon,
Popover,
Text,
TextContent,
Expand All @@ -41,7 +40,6 @@ import {
Toolbar,
ToolbarContent,
ToolbarItem,
Tooltip,
} from '@patternfly/react-core';
import { OutlinedQuestionCircleIcon, SearchIcon } from '@patternfly/react-icons';
import { ExpandableRowContent, TableComposable, Tbody, Td, Th, Thead, Tr } from '@patternfly/react-table';
Expand Down
2 changes: 1 addition & 1 deletion src/app/SecurityPanel/ImportCertificate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

import { JmxSslDescription } from '@app/Shared/Components/JmxSslDescription';
import { Button, Icon, Popover, Text, TextContent, TextVariants, Tooltip } from '@patternfly/react-core';
import { Button, Popover, Text, TextContent, TextVariants } from '@patternfly/react-core';
import { OutlinedQuestionCircleIcon } from '@patternfly/react-icons';
import * as React from 'react';
import { CertificateUploadModal } from './CertificateUploadModal';
Expand Down
22 changes: 15 additions & 7 deletions src/app/Shared/Services/Api.service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -503,9 +503,13 @@ export class ApiService {

// from file system path functions
uploadArchivedRecordingToGrafanaFromPath(jvmId: string, recordingName: string): Observable<boolean> {
return this.sendRequest('beta', `fs/recordings/${encodeURIComponent(jvmId)}/${encodeURIComponent(recordingName)}/upload`, {
method: 'POST',
}).pipe(
return this.sendRequest(
'beta',
`fs/recordings/${encodeURIComponent(jvmId)}/${encodeURIComponent(recordingName)}/upload`,
{
method: 'POST',
},
).pipe(
map((resp) => resp.ok),
first(),
);
Expand All @@ -529,10 +533,14 @@ export class ApiService {
}

postRecordingMetadataFromPath(jvmId: string, recordingName: string, labels: RecordingLabel[]): Observable<boolean> {
return this.sendRequest('beta', `fs/recordings/${encodeURIComponent(jvmId)}/${encodeURIComponent(recordingName)}/metadata/labels`, {
method: 'POST',
body: this.transformAndStringifyToRawLabels(labels),
}).pipe(
return this.sendRequest(
'beta',
`fs/recordings/${encodeURIComponent(jvmId)}/${encodeURIComponent(recordingName)}/metadata/labels`,
{
method: 'POST',
body: this.transformAndStringifyToRawLabels(labels),
},
).pipe(
map((resp) => resp.ok),
first(),
);
Expand Down

0 comments on commit 5469545

Please sign in to comment.