Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-5244

Fabric - Wiki - Delete version dialog: Change warning for default version

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • jboss-fuse-6.3
    • jboss-fuse-6.3
    • Hawtio
    • None
    • % %
    • 6.3 Sprint 4 (Mar 28 - Apr 29)

    Description

      Warning when deleting the default version:

      Current:
      This version is in use and cannot be deleted.

      Suggested:
      This version is set default and cannot be deleted. (or any better English styling)

      The following code snippet covering the same part of the code as this commit should do the trick I guess:

      if ($scope.excludes.find((v) => {
      		return v === newValue;
      		})) {
              $scope.warning = "This version is in use and cannot be deleted."
              $scope.invalid = true;
            } else {
          	  if ($scope.selectedVersion.defaultVersion === true) {
          		  $scope.warning = "This version is set default and cannot be deleted."
          		  $scope.invalid = true;
          	  } else {
          		  $scope.warning = "This operation cannot be undone!";
          		  $scope.invalid = false;
          	  }
            }
      

      Attachments

        Issue Links

          Activity

            People

              acosenti Andrea Cosentino
              mastepan@redhat.com Martin Stepanek
              Martin Stepanek Martin Stepanek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: