Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Genesys Website
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
32
Issues
32
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Genesys PGR
Genesys Website
Commits
0fc285a0
Commit
0fc285a0
authored
Nov 28, 2019
by
Oleksii Savran
Committed by
Viacheslav Pavlov
Nov 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wrong opening sequence of "Generate FTP password" pop-ups
parent
19d49cc6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
src/user/ui/dashboard/c/FtpPasswordDialog.tsx
src/user/ui/dashboard/c/FtpPasswordDialog.tsx
+1
-1
src/utilities/confirmAlert.tsx
src/utilities/confirmAlert.tsx
+3
-0
No files found.
src/user/ui/dashboard/c/FtpPasswordDialog.tsx
View file @
0fc285a0
...
...
@@ -54,12 +54,12 @@ class ChangePasswordPage extends React.Component<IFtpPasswordPage> {
private
show
=
()
=>
{
const
{
t
}
=
this
.
props
;
this
.
setState
({
open
:
true
});
confirm
(
t
(
'
user.dashboard.p.ftpPassword.confirm
'
),
{
confirmLabel
:
t
(
'
common:label.yes
'
),
abortLabel
:
t
(
'
common:label.no
'
),
}).
then
(()
=>
{
this
.
setState
({
open
:
true
});
this
.
generatePassword
();
});
}
...
...
src/utilities/confirmAlert.tsx
View file @
0fc285a0
...
...
@@ -6,6 +6,7 @@ import DialogActions from '@material-ui/core/DialogActions';
import
DialogContent
from
'
@material-ui/core/DialogContent
'
;
import
DialogContentText
from
'
@material-ui/core/DialogContentText
'
;
import
DialogTitle
from
'
@material-ui/core/DialogTitle
'
;
import
{
StylesProvider
}
from
'
@material-ui/core/styles
'
;
interface
IConfirmProps
extends
React
.
ClassAttributes
<
any
>
{
...
...
@@ -45,6 +46,7 @@ class Confirm extends React.Component<IConfirmProps, any> {
const
{
message
,
description
,
confirmLabel
=
'
OK
'
,
abortLabel
=
'
Cancel
'
,
confirmOnly
=
false
}
=
this
.
props
;
return
(
<
StylesProvider
injectFirst
>
<
Dialog
open
onClose
=
{
this
.
reject
}
...
...
@@ -70,6 +72,7 @@ class Confirm extends React.Component<IConfirmProps, any> {
</
Button
>
</
DialogActions
>
</
Dialog
>
</
StylesProvider
>
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment