Skip to content

Commit

Permalink
Update according to review
Browse files Browse the repository at this point in the history
  • Loading branch information
doracretu3pillar committed Nov 2, 2023
1 parent 7695360 commit 28ba588
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions public/app/percona/pmm-dump/PMMDump.messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const Messages = {
addressPlaceholder: 'sftp.percona.com',
savingButton: 'Saving...',
sendButton: 'Send',
cancelButton: 'Cancel',
},
emptyTable: 'No dumps available',
createDataset: 'Create dataset',
Expand Down
6 changes: 4 additions & 2 deletions public/app/percona/pmm-dump/SendToSupportModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { sendToSupportAction } from 'app/percona/shared/core/reducers/pmmDump/pm
import { getDumps } from 'app/percona/shared/core/selectors';
import { useDispatch, useSelector } from 'app/types';

import { PasswordField } from '../../core/components/PasswordField/PasswordField';

interface ModalProps {
onClose: (saved?: boolean) => void;
dumpIds: string[];
Expand Down Expand Up @@ -68,7 +70,7 @@ export const SendToSupportModal: FC<ModalProps> = ({ onClose, dumpIds }) => {
/>
</Field>
<Field label="Password" invalid={!!errors.password} error={errors.password?.message}>
<Input
<PasswordField
id="password"
{...register('password', {
required: Messages.dumps.actions.passwordRequired,
Expand All @@ -95,7 +97,7 @@ export const SendToSupportModal: FC<ModalProps> = ({ onClose, dumpIds }) => {
onClick={() => onClose(false)}
fill="outline"
>
Cancel
{Messages.dumps.actions.cancelButton}
</Button>
</Modal.ButtonRow>
</>
Expand Down
4 changes: 0 additions & 4 deletions public/app/percona/shared/core/reducers/pmmDump/pmmDump.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ export const pmmDumpSlice = createSlice({
initialState,
reducers: {},
extraReducers: (builder) => {
builder.addCase(fetchPmmDumpAction.pending, (state) => ({
...state,
}));

builder.addCase(fetchPmmDumpAction.fulfilled, (state, action) => ({
...state,
dumps: action.payload,
Expand Down

0 comments on commit 28ba588

Please sign in to comment.