diff options
author | Gunnar Mills <gmills@us.ibm.com> | 2019-05-23 11:45:49 -0500 |
---|---|---|
committer | Gunnar Mills <gmills@us.ibm.com> | 2019-05-23 12:11:40 -0500 |
commit | 7920baeb036d499203d8b59516a2355eab9aba79 (patch) | |
tree | 8f1ccadeeb518d87f710fe20c7a75ce20fc92746 /app/common/directives | |
parent | 8a111586bdae0eac6fa066ccf65b6053d3b34aa0 (diff) | |
download | phosphor-webui-7920baeb036d499203d8b59516a2355eab9aba79.tar.gz phosphor-webui-7920baeb036d499203d8b59516a2355eab9aba79.zip |
Remove unused errors.html
Also removed errorModalDetails and displayErrorModal from
dataService since they are no longer used.
errors.html was only active when displayErrorModal was true.
displayErrorModal was only true when activateErrorModal was
called.
activateErrorModal was removed in a previous
commit. activateErrorModal's only use was removed here:
https://github.com/openbmc/phosphor-webui/commit/a38a287ccaa97eddc9df7333e33357b14772d4c6#diff-65affd2488457363c5b9e9266258c3b8
Tested: Searched the repo. Built an image and loaded onto a
Witherspoon. No regressions observed.
Change-Id: I96e26dd3817d7b02bbce74b4cc093b75dab669ed
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'app/common/directives')
-rw-r--r-- | app/common/directives/errors.html | 17 | ||||
-rw-r--r-- | app/common/directives/errors.js | 20 |
2 files changed, 0 insertions, 37 deletions
diff --git a/app/common/directives/errors.html b/app/common/directives/errors.html deleted file mode 100644 index 49ed449..0000000 --- a/app/common/directives/errors.html +++ /dev/null @@ -1,17 +0,0 @@ -<!-- Unexpected error --> -<section class="modal" aria-hidden="true" aria-labelledby="modalTitle" aria-describedby="modalDescription" role="dialog" ng-class="{'active': dataService.displayErrorModal}"> - <div class="modal__upload-fail" role="document"> - <div class="screen-reader-offscreen modal-description">{{dataService.errorModalDetails.title}}</div><!-- accessibility only; used for screen readers --> - <div class="page-header "> - <span class="icon icon__warning inline"><span class="accessible-text" role="alert">{{dataService.errorModalDetails.title}}</span></span> - <h3 class="modal-title inline">{{dataService.errorModalDetails.title}}</h3> - </div> - <div class="modal__content"> - <p>{{dataService.errorModalDetails.description}}</p> - </div> - <div class="modal__button-wrapper"> - <button class="inline btn-primary" ng-click="dataService.deactivateErrorModal()">Close</button> - </div> - </div> -</section> -<div class="modal-overlay" tabindex="-1" ng-class="{'active': dataService.displayErrorModal}"></div> diff --git a/app/common/directives/errors.js b/app/common/directives/errors.js deleted file mode 100644 index 5bd1e52..0000000 --- a/app/common/directives/errors.js +++ /dev/null @@ -1,20 +0,0 @@ -window.angular && (function(angular) { - 'use strict'; - - angular.module('app.common.directives').directive('errors', [ - 'APIUtils', - function(APIUtils) { - return { - 'restrict': 'E', - 'template': require('./errors.html'), - 'scope': {'path': '='}, - 'controller': [ - '$scope', 'dataService', - function($scope, dataService) { - $scope.dataService = dataService; - } - ] - }; - } - ]); -})(window.angular); |