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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: jboss-fuse-6.3
    • Fix Version/s: jboss-fuse-6.3
    • Component/s: Hawtio
    • Labels:
      None
    • Environment:

      fuse 6.3.0 045

    • Sprint:
      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;
          	  }
            }
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  oscerd Andrea Cosentino
                  Reporter:
                  mastepan Martin Štěpánek
                  Tester:
                  Martin Štěpánek
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: