Hello,
I want to dynamically enable/disable commit button when there is no commit message in it.
I am working with other people. and I want to intervene them to make commits without a message.
Here you see the edited code of commit-dialog.coffee file.
I added the css features of 'inactive class' to button in dialog.less file as well.
And when I change the class of button down there in this commit-dialog code to "inactive" by myself, it looks like just how i want it, when it is disabled.
But I want to dynamically enable/disable that button, depending on if there is an entry on commit line.
I tried to add some noMessage function as you can see down there in order to change in dynamically, but some how it didn't work. I think, I either don't know how to refer to that button in my noMessage function (which I tried by adding an outlet to the button), or need a javascript function to check if the text area in the upper part is filled.
Hello, I want to dynamically enable/disable commit button when there is no commit message in it. I am working with other people. and I want to intervene them to make commits without a message.
Here you see the edited code of commit-dialog.coffee file.
I added the css features of 'inactive class' to button in dialog.less file as well.
And when I change the class of button down there in this commit-dialog code to "inactive" by myself, it looks like just how i want it, when it is disabled.
But I want to dynamically enable/disable that button, depending on if there is an entry on commit line.
I tried to add some noMessage function as you can see down there in order to change in dynamically, but some how it didn't work. I think, I either don't know how to refer to that button in my noMessage function (which I tried by adding an outlet to the button), or need a javascript function to check if the text area in the upper part is filled.
Can anybody help me about it? Thanks in advance