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:
@ -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();
|
||||
|
Reference in New Issue
Block a user