mirror of
https://github.com/nasa/openmct.git
synced 2024-12-20 21:53:08 +00:00
Rename dialogSeverity to messageServity for reuse with notifications
This commit is contained in:
parent
d20abe01dd
commit
ec7edb58ca
@ -2,10 +2,11 @@
|
||||
"extensions": {
|
||||
"constants": [
|
||||
{
|
||||
"key": "dialogSeverity",
|
||||
"key": "messageSeverity",
|
||||
"value": {
|
||||
"ERROR": "error",
|
||||
"INFO": "info"
|
||||
"INFO": "info",
|
||||
"SUCCESS": "success"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
@ -1,22 +1,28 @@
|
||||
{
|
||||
"extensions": {
|
||||
"templates":[
|
||||
{
|
||||
"key":"dialogLaunchTemplate",
|
||||
"templateUrl": "dialog-launch.html"
|
||||
}
|
||||
],
|
||||
"controllers":[
|
||||
{
|
||||
"key":"DialogLaunchController",
|
||||
"implementation":"DialogLaunchController.js",
|
||||
"depends": ["$scope", "dialogService", "$timeout", "$log", "dialogSeverity"]
|
||||
}
|
||||
],
|
||||
"indicators": [
|
||||
{
|
||||
"implementation": "DialogLaunchIndicator.js"
|
||||
}
|
||||
]
|
||||
}
|
||||
"extensions": {
|
||||
"templates": [
|
||||
{
|
||||
"key": "dialogLaunchTemplate",
|
||||
"templateUrl": "dialog-launch.html"
|
||||
}
|
||||
],
|
||||
"controllers": [
|
||||
{
|
||||
"key": "DialogLaunchController",
|
||||
"implementation": "DialogLaunchController.js",
|
||||
"depends": [
|
||||
"$scope",
|
||||
"dialogService",
|
||||
"$timeout",
|
||||
"$log",
|
||||
"messageSeverity"
|
||||
]
|
||||
}
|
||||
],
|
||||
"indicators": [
|
||||
{
|
||||
"implementation": "DialogLaunchIndicator.js"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -26,14 +26,14 @@ define(
|
||||
function () {
|
||||
"use strict";
|
||||
|
||||
function DialogLaunchController($scope, dialogService, $timeout, $log, dialogSeverity) {
|
||||
function DialogLaunchController($scope, dialogService, $timeout, $log, messageSeverity) {
|
||||
$scope.launchProgress = function () {
|
||||
var model = {
|
||||
title: "Progress dialog example",
|
||||
progress: 0,
|
||||
hint: "Calculating...",
|
||||
unknownDuration: false,
|
||||
severity: dialogSeverity.INFO,
|
||||
severity: messageSeverity.INFO,
|
||||
actions: [
|
||||
{
|
||||
label: "Cancel Operation",
|
||||
@ -72,7 +72,7 @@ define(
|
||||
var model = {
|
||||
title: "Error Message Title",
|
||||
hint: "Something happened. It was not so good.",
|
||||
severity: dialogSeverity.ERROR,
|
||||
severity: messageSeverity.ERROR,
|
||||
actions: [
|
||||
{
|
||||
label: "OK",
|
||||
|
Loading…
Reference in New Issue
Block a user