diff --git a/res/app/components/stf/common-ui/fatal-message/fatal-message.css b/res/app/components/stf/common-ui/fatal-message/fatal-message.css deleted file mode 100644 index 247403d3..00000000 --- a/res/app/components/stf/common-ui/fatal-message/fatal-message.css +++ /dev/null @@ -1,24 +0,0 @@ -.stf-fatal-message .dialog-header-error { - background-color: #d2322d; -} - -.stf-fatal-message .dialog-header-wait { - background-color: #428bca; -} - -.stf-fatal-message .dialog-header-notify { - background-color: #eeeeee; -} - -.stf-fatal-message .dialog-header-confirm { - background-color: #333333; -} - -.stf-fatal-message .dialog-header-error span, -.stf-fatal-message .dialog-header-error h4, -.stf-fatal-message .dialog-header-wait span, -.stf-fatal-message .dialog-header-wait h4, -.stf-fatal-message .dialog-header-confirm span, -.stf-fatal-message .dialog-header-confirm h4 { - color: #ffffff; -} diff --git a/res/app/components/stf/common-ui/index.js b/res/app/components/stf/common-ui/index.js index 90553fb9..59769361 100644 --- a/res/app/components/stf/common-ui/index.js +++ b/res/app/components/stf/common-ui/index.js @@ -8,5 +8,5 @@ module.exports = angular.module('stf/common-ui', [ require('./ng-enter').name, require('./tooltips').name, //require('./tree').name, - require('./fatal-message').name + require('./modals').name ]) diff --git a/res/app/components/stf/common-ui/modals/common/index.js b/res/app/components/stf/common-ui/modals/common/index.js new file mode 100644 index 00000000..c4598537 --- /dev/null +++ b/res/app/components/stf/common-ui/modals/common/index.js @@ -0,0 +1,4 @@ +require('./modals.css') + +module.exports = angular.module('stf.modals.common', [ +]) diff --git a/res/app/components/stf/common-ui/modals/common/modals.css b/res/app/components/stf/common-ui/modals/common/modals.css new file mode 100644 index 00000000..5e346d61 --- /dev/null +++ b/res/app/components/stf/common-ui/modals/common/modals.css @@ -0,0 +1,28 @@ +.stf-modal { + +} + +.stf-modal .dialog-header-error { + background-color: #d2322d; +} + +.stf-modal .dialog-header-wait { + background-color: #428bca; +} + +.stf-modal .dialog-header-notify { + background-color: #eeeeee; +} + +.stf-modal .dialog-header-confirm { + background-color: #333333; +} + +.stf-modal .dialog-header-error span, +.stf-modal .dialog-header-error h4, +.stf-modal .dialog-header-wait span, +.stf-modal .dialog-header-wait h4, +.stf-modal .dialog-header-confirm span, +.stf-modal .dialog-header-confirm h4 { + color: #ffffff; +} diff --git a/res/app/components/stf/common-ui/fatal-message/fatal-message-service.js b/res/app/components/stf/common-ui/modals/fatal-message/fatal-message-service.js similarity index 96% rename from res/app/components/stf/common-ui/fatal-message/fatal-message-service.js rename to res/app/components/stf/common-ui/modals/fatal-message/fatal-message-service.js index 6d9f5b16..d6165ddc 100644 --- a/res/app/components/stf/common-ui/fatal-message/fatal-message-service.js +++ b/res/app/components/stf/common-ui/modals/fatal-message/fatal-message-service.js @@ -29,7 +29,6 @@ module.exports = function FatalMessageServiceFactory($modal, $location, $route) }) modalInstance.result.then(function (selectedItem) { - console.log(selectedItem) }, function () { }) diff --git a/res/app/components/stf/common-ui/fatal-message/fatal-message-spec.js b/res/app/components/stf/common-ui/modals/fatal-message/fatal-message-spec.js similarity index 100% rename from res/app/components/stf/common-ui/fatal-message/fatal-message-spec.js rename to res/app/components/stf/common-ui/modals/fatal-message/fatal-message-spec.js diff --git a/res/app/components/stf/common-ui/fatal-message/fatal-message.jade b/res/app/components/stf/common-ui/modals/fatal-message/fatal-message.jade similarity index 76% rename from res/app/components/stf/common-ui/fatal-message/fatal-message.jade rename to res/app/components/stf/common-ui/modals/fatal-message/fatal-message.jade index e2365bbf..83f17d34 100644 --- a/res/app/components/stf/common-ui/fatal-message/fatal-message.jade +++ b/res/app/components/stf/common-ui/modals/fatal-message/fatal-message.jade @@ -1,18 +1,18 @@ -.stf-fatal-message +.stf-fatal-message.stf-modal .modal-header.dialog-header-error button(type='button', ng-click='cancel()').close × h4.modal-title.text-danger i.fa.fa-warning - span Device was disconnected - .modal-body.text-danger Device is not in use anymore + span(translate) Device was disconnected + .modal-body.text-danger(translate) Device is not in use anymore .modal-footer button.btn.btn-primary(type='button', ng-click='ok()') i.fa.fa-refresh - span Try to reconnect + span(translate) Try to reconnect button.btn.btn-success(ng-click='second()') i.fa.fa-sitemap - span Go to Device List - //button.btn.btn-warning(translate, ng-click='cancel()') Close + span(translate) Go to Device List + //button.btn.btn-warning(ng-click='cancel()') Close //'