Skip to content

Commit

Permalink
Kick off new hawtio-ui plugin to hold UI directives, move hawtio-conf…
Browse files Browse the repository at this point in the history
…irm-dialog there
  • Loading branch information
gashcrumb committed May 1, 2013
1 parent 2ab1caa commit ce7e2b5
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 8 deletions.
Expand Up @@ -2,7 +2,7 @@ module ActiveMQ {
var pluginName = 'activemq';
var jmxDomain = 'org.apache.activemq';

angular.module(pluginName, ['bootstrap', 'ngResource', 'ui.bootstrap.dialog', 'hawtioCore', 'camel']).config(($routeProvider) => {
angular.module(pluginName, ['bootstrap', 'ngResource', 'ui.bootstrap.dialog', 'hawtioCore', 'camel', 'hawtio-ui']).config(($routeProvider) => {
$routeProvider.
when('/activemq/browseQueue', {templateUrl: 'app/activemq/html/browseQueue.html'}).
when('/activemq/subscribers', {templateUrl: 'app/activemq/html/subscribers.html'}).
Expand Down
2 changes: 1 addition & 1 deletion hawtio-web/src/main/webapp/app/camel/js/camelPlugin.ts
Expand Up @@ -10,7 +10,7 @@ module Camel {
var contextToolBar = "app/camel/html/attributeToolBarContext.html";


angular.module(pluginName, ['bootstrap', 'ui.bootstrap', 'ui.bootstrap.dialog', 'ngResource', 'hawtioCore']).
angular.module(pluginName, ['bootstrap', 'ui.bootstrap', 'ui.bootstrap.dialog', 'ngResource', 'hawtioCore', 'hawtio-ui']).
config(($routeProvider) => {
$routeProvider.
when('/camel/browseEndpoint', {templateUrl: 'app/camel/html/browseEndpoint.html'}).
Expand Down
3 changes: 0 additions & 3 deletions hawtio-web/src/main/webapp/app/core/js/corePlugin.ts
Expand Up @@ -314,9 +314,6 @@ angular.module('hawtioCore', ['bootstrap', 'ngResource', 'ui', 'ui.bootstrap.dia
};
return editableProperty;
}]).
directive('hawtioConfirmDialog', function() {
return new Core.ConfirmDialog();
}).
directive('gridStyle', function($window) {
return new Core.GridStyle($window);
});
Expand Down
2 changes: 1 addition & 1 deletion hawtio-web/src/main/webapp/app/forms/js/formPlugin.ts
Expand Up @@ -2,7 +2,7 @@ module Forms {

export var pluginName = 'hawtio-forms';

angular.module(Forms.pluginName, ['bootstrap', 'ngResource', 'hawtioCore', 'datatable', 'ui.bootstrap', 'ui.bootstrap.dialog']).
angular.module(Forms.pluginName, ['bootstrap', 'ngResource', 'hawtioCore', 'datatable', 'ui.bootstrap', 'ui.bootstrap.dialog', 'hawtio-ui']).
config(($routeProvider) => {
$routeProvider.
when('/forms/test', {templateUrl: 'app/forms/html/test.html'}).
Expand Down
@@ -1,10 +1,10 @@
module Core {
module UI {

export class ConfirmDialog {
public restrict = 'A';
public replace = true;
public transclude = true;
public templateUrl = 'app/core/html/confirmDialog.html';
public templateUrl = 'app/ui/html/confirmDialog.html';

public scope = {
show: '=hawtioConfirmDialog',
Expand Down
14 changes: 14 additions & 0 deletions hawtio-web/src/main/webapp/app/ui/js/uiPlugin.ts
@@ -0,0 +1,14 @@
module UI {

export var pluginName = 'hawtio-ui';

angular.module(UI.pluginName, ['bootstrap', 'ngResource', 'hawtioCore', 'ui', 'ui.bootstrap']).
directive('hawtioConfirmDialog', function() {
return new UI.ConfirmDialog();
});



hawtioPluginLoader.addModule(pluginName);

}

0 comments on commit ce7e2b5

Please sign in to comment.