Trigger state change to avoid UI lag
This commit is contained in:
parent
449c253db9
commit
e893a70fa2
1 changed files with 4 additions and 0 deletions
|
@ -149,6 +149,8 @@
|
||||||
await Editor.SetValue(Script.Contents);
|
await Editor.SetValue(Script.Contents);
|
||||||
|
|
||||||
ModalVisible = true;
|
ModalVisible = true;
|
||||||
|
|
||||||
|
StateHasChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
private async void Delete(Script script = null)
|
private async void Delete(Script script = null)
|
||||||
|
@ -172,6 +174,8 @@
|
||||||
|
|
||||||
ModalVisible = false;
|
ModalVisible = false;
|
||||||
|
|
||||||
|
StateHasChanged();
|
||||||
|
|
||||||
await MessageService.Success("Script saved!");
|
await MessageService.Success("Script saved!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue