1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-01-18 13:07:58 +00:00

Fixed host editing bug

This commit is contained in:
Romein van Buren 2023-06-24 20:43:02 +02:00
parent cb89b5923f
commit 67b820ad47
Signed by: romein
GPG Key ID: 0EFF8478ADDF6C49
2 changed files with 10 additions and 0 deletions

View File

@ -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]

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();