Skip to content
Snippets Groups Projects
stateProcess.js 342 B
Newer Older
import("system.neon");
import("system.result");
import("system.project");

S.Listl's avatar
S.Listl committed
var isTeamsEnabled = project.getInstanceConfigValue("teamsEnabled", null);
S.Listl's avatar
S.Listl committed
if (isTeamsEnabled == "true")
{
    result.string(neon.COMPONENTSTATE_EDITABLE);
}
else
{
    result.string(neon.COMPONENTSTATE_INVISIBLE);
    result.string(neon.COMPONENTSTATE_INVISIBLE);