Hi ,
Connected to Editior Theme - i would like to use the "login" event.
I have the adminAuth set to my user and password.
In settings.js , I have :
editorTheme: {
page: {
scripts: 'C:/Users/SANDEEAG/.node-red/test.js',
},
In the test.js , I have done the below - but unable to get the login event.
$( document ).ready(function() {
RED.events.on('flows:change',function(data) {
console.log(JSON.stringify(data));
});
RED.events.on('login',function(data) {
console.log("Login 1" + data);
});
RED.events.on('workspace:dirty', function(data) {
RED.events.on('login',function(data) {
console.log("Login 2 " + data);
});
if (data.dirty)
{
console.log("Data is dirty");
RED.events.on('login',function(data) {
console.log("Login 4" + data);
});
}
})
RED.events.on('deploy', function(data) {
console.log("Deployed");
window.parent.postMessage({changed:false}, '*');
})
});
The reason i have multiple functions for login- is to understand understand when it gets attached to "login" event.
Appreciate any help on this.
(I have been able to catch other events like workspace:dirty and flows:change etc.