
This patch aligns the workflow markup with Horizon so that it can correctly inherit styles, works with the theme swap patch, and performs better with accessibility tools. Also noted that "BayModel" and "Bay Model" were used all over. We should settle on the correct term, "Baymodel". Closes-Bug: 1554527 Change-Id: I2cadcfbb338903c379b40ebc4a39d844065fdb12
46 lines
1.4 KiB
JavaScript
46 lines
1.4 KiB
JavaScript
/**
|
|
* Copyright 2015 Cisco Systems, Inc.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
* not use this file except in compliance with the License. You may obtain
|
|
* a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
* License for the specific language governing permissions and limitations
|
|
* under the License.
|
|
*/
|
|
|
|
(function() {
|
|
'use strict';
|
|
|
|
/**
|
|
* @ngdoc overview
|
|
* @name horizon.dashboard.containers.baymodels
|
|
* @ngModule
|
|
*
|
|
* @description
|
|
* Provides all the services and widgets require to display the bay model
|
|
* panel
|
|
*/
|
|
angular
|
|
.module('horizon.dashboard.containers.baymodels', ['horizon.dashboard.containers.baymodels.actions'])
|
|
.constant('horizon.dashboard.containers.baymodels.events', events())
|
|
.constant('horizon.dashboard.containers.baymodels.resourceType', 'OS::Magnum::Baymodel');
|
|
|
|
/**
|
|
* @ngdoc constant
|
|
* @name horizon.dashboard.containers.baymodels.events
|
|
* @description A list of events used by Bay Models
|
|
*/
|
|
function events() {
|
|
return {
|
|
CREATE_SUCCESS: 'horizon.dashboard.containers.baymodels.CREATE_SUCCESS',
|
|
DELETE_SUCCESS: 'horizon.dashboard.containers.baymodels.DELETE_SUCCESS'
|
|
};
|
|
}
|
|
})();
|