1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-07-17 21:44:05 +00:00

Fixed host editing bug

This commit is contained in:
2023-06-24 20:43:02 +02:00
parent cb89b5923f
commit 67b820ad47
2 changed files with 10 additions and 0 deletions

View File

@ -290,6 +290,15 @@ async function refresh() {
await refresh();
};
host.edit = async function() {
const dialog = dialogs.new(HostDetailDialog, { hostKey });
return new Promise(resolve => {
dialog.$on('close', () => {
refresh().then(resolve);
});
});
};
host.remove = async function() {
await RemoveHost(hostKey);
await refresh();