mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-24 03:58:53 +00:00
fix: rename cancel
This commit is contained in:
parent
c1b7476f43
commit
a6f969614e
@ -123,6 +123,10 @@ export function renameActivePattern() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const newName = prompt('Enter new name', activePattern);
|
const newName = prompt('Enter new name', activePattern);
|
||||||
|
if (newName === null) {
|
||||||
|
// canceled
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (userPatterns[newName]) {
|
if (userPatterns[newName]) {
|
||||||
alert('Name already taken!');
|
alert('Name already taken!');
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user