FreeKill/qml/Pages/Logic.js
Notify-ctrl 58ea0ca80a
Role & Seat (#6)
* standard generals

* assignrole

* arrangeSeat

* fix bugs
2022-03-28 22:24:30 +08:00

14 lines
359 B
JavaScript

callbacks["UpdateAvatar"] = function(jsonData) {
mainWindow.busy = false;
Self.avatar = jsonData;
toast.show("Update avatar done.");
}
callbacks["UpdatePassword"] = function(jsonData) {
mainWindow.busy = false;
if (jsonData === "1")
toast.show("Update password done.");
else
toast.show("Old password wrong!", 5000);
}