Skip to content

Commit

Permalink
Merge pull request #35 from CodeDead/release/v2.2.1
Browse files Browse the repository at this point in the history
Release/v2.2.1
  • Loading branch information
CodeDead authored Dec 16, 2022
2 parents 7f56275 + 5c5cd0b commit 767b62f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "advanced-passgen",
"version": "2.2.0",
"version": "2.2.1",
"private": true,
"dependencies": {
"@emotion/react": "^11.10.5",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "advanced-passgen"
version = "2.2.0"
version = "2.2.1"
description = "Advanced PassGen can be used to quickly generate thousands of passwords"
authors = ["CodeDead <[email protected]>"]
license = "GPL-3.0-only"
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"package": {
"productName": "advanced-passgen",
"version": "2.2.0"
"version": "2.2.1"
},
"tauri": {
"allowlist": {
Expand Down
14 changes: 11 additions & 3 deletions src/routes/Home/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,28 +118,36 @@ const Home = () => {
<TextField
label={language.minimumLength}
type="number"
autoComplete="off"
value={min}
error={min > max}
fullWidth
onChange={(e) => d2(setPasswordLengthMin(e.target.value))}
onChange={(e) => d2(setPasswordLengthMin(parseInt(e.target.value, 10)))}
/>
</Grid>
<Grid item xs={12} md={12} lg={12}>
<TextField
label={language.maximumLength}
type="number"
autoComplete="off"
value={max}
error={max < min}
fullWidth
onChange={(e) => d2(setPasswordLengthMax(e.target.value))}
onChange={(e) => d2(setPasswordLengthMax(parseInt(e.target.value, 10)))}
/>
</Grid>
<Grid item xs={12} md={12} lg={12}>
<TextField
type="number"
autoComplete="off"
label={language.amount}
value={amount}
onChange={(e) => d2(setPasswordAmount(e.target.value))}
error={amount.length === 0 || amount < 1}
onChange={(e) => {
if (e.target.value && e.target.value.length > 0) {
d2(setPasswordAmount(parseInt(e.target.value, 10)));
}
}}
fullWidth
/>
</Grid>
Expand Down

0 comments on commit 767b62f

Please sign in to comment.