Fixup some TODOs
This commit is contained in:
@@ -107,12 +107,7 @@ async function onChangeFallbackEmail(currentFallbackEmail) {
|
||||
|
||||
async function onAvatarChanged(file) {
|
||||
await profileModel.setAvatar(file);
|
||||
|
||||
// TODO we somehow need to do this globally
|
||||
// invalidate and refresh profile avatar url
|
||||
const u = new URL(user.value.avatarUrl);
|
||||
u.searchParams.set('ts', Date.now());
|
||||
user.value.avatarUrl = u.toString();
|
||||
await refreshProfile();
|
||||
}
|
||||
|
||||
// Password changes
|
||||
|
||||
@@ -103,7 +103,6 @@ async function onSubmit() {
|
||||
const [error] = await provisionModel.setup(data);
|
||||
if (error) {
|
||||
if (error.status === 422) {
|
||||
// TODO what is this special error checking for ami doing here?
|
||||
if (provider.value === 'ami') {
|
||||
formError.value.ami = error.body.message;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user