Rename dialogSeverity to messageServity for reuse with notifications

This commit is contained in:
Henry 2015-10-05 10:39:06 -07:00
parent d20abe01dd
commit ec7edb58ca
3 changed files with 32 additions and 25 deletions

View File

@ -2,10 +2,11 @@
"extensions": {
"constants": [
{
"key": "dialogSeverity",
"key": "messageSeverity",
"value": {
"ERROR": "error",
"INFO": "info"
"INFO": "info",
"SUCCESS": "success"
}
}
],

View File

@ -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"
}
]
}
}

View File

@ -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",