mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-17 02:56:16 +08:00
setting custom long text name to empty/undefined when deleting long text
This commit is contained in:
parent
48dcfe7402
commit
c7402bf203
1 changed files with 3 additions and 0 deletions
|
@ -21,6 +21,7 @@ import {
|
|||
updatePassword,
|
||||
} from "firebase/auth";
|
||||
import { isPasswordStrong } from "../utils/misc";
|
||||
import * as CustomTextState from "../states/custom-text-name";
|
||||
|
||||
interface Input {
|
||||
placeholder?: string;
|
||||
|
@ -1089,6 +1090,7 @@ list["deleteCustomText"] = new SimplePopup(
|
|||
(_thisPopup) => {
|
||||
CustomText.deleteCustomText(_thisPopup.parameters[0]);
|
||||
Notifications.add("Custom text deleted", 1);
|
||||
CustomTextState.setCustomTextName("", undefined);
|
||||
SavedTextsPopup.show();
|
||||
},
|
||||
(_thisPopup) => {
|
||||
|
@ -1109,6 +1111,7 @@ list["deleteCustomTextLong"] = new SimplePopup(
|
|||
(_thisPopup) => {
|
||||
CustomText.deleteCustomText(_thisPopup.parameters[0], true);
|
||||
Notifications.add("Custom text deleted", 1);
|
||||
CustomTextState.setCustomTextName("", undefined);
|
||||
SavedTextsPopup.show();
|
||||
},
|
||||
(_thisPopup) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue