Skip to content
Snippets Groups Projects
stateProcess.js 368 B
import("MSTeams_lib");
import("system.result");
import("system.vars");
import("system.neon");

var res = neon.COMPONENTSTATE_INVISIBLE;
var recordState = vars.get("$sys.recordstate");
if (MSTeamsUtils.isTeamsEnabled() && recordState != neon.OPERATINGSTATE_NEW && recordState != neon.OPERATINGSTATE_EDIT)
    res = neon.COMPONENTSTATE_READONLY;
    
result.string(res);