fix: rename cancel
This commit is contained in:
parent
c1b7476f43
commit
a6f969614e
1 changed files with 4 additions and 0 deletions
|
|
@ -123,6 +123,10 @@ export function renameActivePattern() {
|
|||
return;
|
||||
}
|
||||
const newName = prompt('Enter new name', activePattern);
|
||||
if (newName === null) {
|
||||
// canceled
|
||||
return;
|
||||
}
|
||||
if (userPatterns[newName]) {
|
||||
alert('Name already taken!');
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue