mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-12 06:08:37 +00:00
fix: rename cancel
This commit is contained in:
parent
c1b7476f43
commit
a6f969614e
@ -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…
x
Reference in New Issue
Block a user