anchor.diff:      final int addedCnt = addedFileList.length;
       final int deletedCnt = deletedFileList.length;
   
  +    SparkDialogButton commitButton = getElement('#gitCommit');
       if (modifiedCnt + addedCnt + deletedCnt == 0) {
         _gitStatusElement.text = "Nothing to commit.";
  -      SparkDialogButton commitButton = getElement('#gitCommit');
         commitButton.disabled = true;
         commitButton.deliverChanges();
       } else {
  +      commitButton.disabled = false;
  +      commitButton.deliverChanges();
         _gitStatusElement.text =
             '$modifiedCnt ${(modifiedCnt != 1) ? 'files' : 'file'} modified, ' +
             '$addedCnt ${(addedCnt != 1) ? 'files' : 'file'} added, ' +
  
positive.code:   void _restoreDialog() {
      SparkDialogButton commitButton = getElement('#gitCommit');
      commitButton.disabled = false;
  
      SparkDialogButton closeButton = getElement('#gitCommitCancel');
      closeButton.disabled = false;
      _toggleProgressVisible(false);
    }
  
  
negative.code:     // TODO(grv): Add verify checks.
      _GitCommitJob commitJob = new _GitCommitJob(gitOperations, _gitName, _gitEmail,
          _commitMessageElement.value, spark);
      return spark.jobManager.schedule(commitJob).whenComplete(() {
        _restoreDialog();
        _hide();
      });
  