From ca25d4c570c9f3c933cc047493a47fef481a1c50 Mon Sep 17 00:00:00 2001 From: f0x Date: Mon, 12 Sep 2022 20:50:38 +0200 Subject: [PATCH] support future api for removing files --- web/source/settings-panel/user/profile.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/web/source/settings-panel/user/profile.js b/web/source/settings-panel/user/profile.js index a74623be..25e22c4c 100644 --- a/web/source/settings-panel/user/profile.js +++ b/web/source/settings-panel/user/profile.js @@ -50,6 +50,14 @@ module.exports = function UserProfile() { }); } + // function removeFile(name) { + // return function(e) { + // e.preventDefault(); + // dispatch(user.setProfileVal([name, ""])); + // dispatch(user.setProfileVal([`${name}File`, ""])); + // }; + // } + return (

Profile

@@ -72,6 +80,7 @@ module.exports = function UserProfile() { {account.headerFile ? account.headerFile.name : "no file selected"}
+ {/* remove */}
@@ -80,6 +89,7 @@ module.exports = function UserProfile() { {account.avatarFile ? account.avatarFile.name : "no file selected"}
+ {/* remove */}