mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-01-18 21:17:59 +00:00
Fixed host editing bug
This commit is contained in:
parent
cb89b5923f
commit
67b820ad47
@ -3,6 +3,7 @@
|
||||
* Open dump in Explorer/Finder when finished (#43).
|
||||
* Made it possible (again) to input loose JSON into find view inputs, i.e. `{ key: 'val' }` or `{ 'num': 2 }` besides `{ "strict": "json" }`.
|
||||
* Improved error logging and dialogs.
|
||||
* Fixed host editing bug.
|
||||
|
||||
## [v0.2.1]
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user