LSP: added always on option to GUI for input capabilities with always_on values

This commit is contained in:
cat 2016-08-31 11:27:56 +02:00 committed by Thulinma
parent 3639705ef6
commit 5b2ab2453f
2 changed files with 101 additions and 90 deletions

View file

@ -2569,6 +2569,17 @@ var UI = {
$('<h3>').text(input.name+' Input options')
);
var build = mist.convertBuildOptions(input,saveas);
if (('always_match' in mist.data.capabilities.inputs[i]) && (mist.inputMatch(mist.data.capabilities.inputs[i].always_match,source))) {
build.push({
label: 'Always on',
type: 'checkbox',
help: 'Keep this input available at all times, even when there are no active viewers.',
pointer: {
main: saveas,
index: 'always_on'
}
});
}
$inputoptions.append(UI.buildUI(build));
}
},$('<br>'),{