This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// when user clicks on button 'startJob', this is the function that it triggers: | |
$scope.startJob = function() { | |
if ($scope.areThereAvailableSegments(jobId)) { | |
console.log('there are available segments, so we show the text editor'); | |
} else { | |
console.log('sorry, no more segments available, capo!') | |
} | |
}; | |
// returns true or false if there are segments available |