mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 04:26:58 +00:00
upd: move claim, add claim for banner and background
This commit is contained in:
parent
56c1154fa6
commit
17a02b2a59
1 changed files with 3 additions and 1 deletions
|
@ -271,7 +271,6 @@ function changeAvatar(ev) {
|
||||||
$i.avatarId = i.avatarId;
|
$i.avatarId = i.avatarId;
|
||||||
$i.avatarUrl = i.avatarUrl;
|
$i.avatarUrl = i.avatarUrl;
|
||||||
globalEvents.emit('requestClearPageCache');
|
globalEvents.emit('requestClearPageCache');
|
||||||
claimAchievement('profileFilled');
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -345,6 +344,7 @@ function changeOrRemoveAvatar(ev) {
|
||||||
}], ev.currentTarget ?? ev.target);
|
}], ev.currentTarget ?? ev.target);
|
||||||
} else {
|
} else {
|
||||||
changeAvatar(ev);
|
changeAvatar(ev);
|
||||||
|
claimAchievement('profileFilled');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -366,6 +366,7 @@ function changeOrRemoveBanner(ev) {
|
||||||
}], ev.currentTarget ?? ev.target);
|
}], ev.currentTarget ?? ev.target);
|
||||||
} else {
|
} else {
|
||||||
changeBanner(ev);
|
changeBanner(ev);
|
||||||
|
claimAchievement('profileFilled');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -387,6 +388,7 @@ function changeOrRemoveBackground(ev) {
|
||||||
}], ev.currentTarget ?? ev.target);
|
}], ev.currentTarget ?? ev.target);
|
||||||
} else {
|
} else {
|
||||||
changeBackground(ev);
|
changeBackground(ev);
|
||||||
|
claimAchievement('profileFilled');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue