fix server script status event, use [ Getting status ]

This commit is contained in:
David Back 2018-08-06 17:03:32 -07:00
parent 00c5b6f5f4
commit e5abd9d57d
2 changed files with 3 additions and 2 deletions

View file

@ -2042,6 +2042,7 @@ var PropertiesTool = function (opts) {
function updateScriptStatus(info) {
info.type = "server_script_status";
webView.emitScriptEvent(JSON.stringify(info));
createToolsWindow.emitScriptEvent(JSON.stringify(info));
}
function resetScriptStatus() {

View file

@ -1671,7 +1671,7 @@ function loaded() {
elServerScripts.addEventListener('change', createEmitTextPropertyUpdateFunction('serverScripts'));
elServerScripts.addEventListener('change', function() {
// invalidate the current status (so that same-same updates can still be observed visually)
elServerScriptStatus.innerText = '[' + elServerScriptStatus.innerText + ']';
elServerScriptStatus.innerText = "[ Getting status ]";
});
elClearUserData.addEventListener("click", function() {
@ -2145,7 +2145,7 @@ function loaded() {
});
elReloadServerScriptsButton.addEventListener("click", function() {
// invalidate the current status (so that same-same updates can still be observed visually)
elServerScriptStatus.innerText = '[' + elServerScriptStatus.innerText + ']';
elServerScriptStatus.innerText = "[ Getting status ]";
EventBridge.emitWebEvent(JSON.stringify({
type: "action",
action: "reloadServerScripts"