From 05afba74aa6725ead47f8dee7284b5cb90693890 Mon Sep 17 00:00:00 2001 From: Balder Date: Thu, 12 Jan 2023 13:26:38 +0100 Subject: [PATCH] LSP: on the edit trigger tab, do not forget what we're editing if capabilities are not yet known # Conflicts: # lsp/minified.js --- lsp/minified.js | 2 +- lsp/mist.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lsp/minified.js b/lsp/minified.js index 60ea65be..f9096b12 100644 --- a/lsp/minified.js +++ b/lsp/minified.js @@ -204,7 +204,7 @@ optional:mist.data.capabilities.connectors[a].push_parameters},i.params)))}else d++;if(c==d){x=x.filter(function(a,b,c){return c.lastIndexOf(a)===b}).sort();ha()}},{browse:mist.data.streams[b].source},{stream:b});c++}}if(c==d){x=x.filter(function(a,b,c){return c.lastIndexOf(a)===b}).sort();ha()}},{active_streams:1}):(x=Object.keys(mist.data.streams),ha());break;case "Triggers":if(!("triggers"in mist.data.config)||!mist.data.config.triggers)mist.data.config.triggers={};var D=$(""),Ua=$("").html($("").html($("").html($("").attr("data-index",r+","+Va).append($("
").text("Trigger on").attr("data-sort-type", "string").addClass("sorting-asc")).append($("").text("Applies to").attr("data-sort-type","string")).append($("").text("Handler").attr("data-sort-type","string")).append($("")))).append(D);c.append(UI.buildUI([{type:"help",help:"Triggers are a way to react to events that occur inside MistServer. These allow you to block specific users, redirect streams, keep tabs on what is being pushed where, etcetera. For full documentation, please refer to the developer documentation section on the MistServer website."}])).append($("
").text(r)).append($("").text("streams"in ta?ta.streams.join(", "):"")).append($("").text(ta.handler)).append($("").html($("