shu-mutou 79eb829d73 Add update queue action
This patch adds Update Queue action into item_actions.

- show item action
- show workflow (set "name" input as disabled)
- load data into workflow
- post data to REST API
- treat result

We need wait for following implementation in Zaqar API,
so these things is not scope of this patch.
- provide available metadata
- remove existing metadata

Change-Id: I21e05b49fa757ed7fb3459c0e87767df7c0926c6
2016-03-10 10:16:06 +09:00

64 lines
2.0 KiB
JavaScript

/**
* Copyright 2015 Catalyst IT Ltd
* Copyright 2016 IBM Corp.
*
* 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.project.queues
* @description Dashboard module to host various queues panels.
*/
angular
.module('horizon.dashboard.project.queues', [
'horizon.dashboard.project.queues.actions'])
.constant('horizon.dashboard.project.queues.events', events())
.constant('horizon.dashboard.project.queues.resourceType', 'OS::Zaqar::Queues')
.config(config);
config.$inject = [
'$provide',
'$windowProvider'
];
/**
* @ngdoc value
* @name horizon.dashboard.project.queues.events
* @description a list of events for queues
*/
function events() {
return {
CREATE_SUCCESS: 'horizon.dashboard.project.queues.CREATE_SUCCESS',
DETAILS_CHANGED: 'horizon.dashboard.project.queues.DETAILS_CHANGED',
METADATA_CHANGED: 'horizon.dashboard.project.queues.METADATA_CHANGED',
DELETE_SUCCESS: 'horizon.dashboard.project.queues.DELETE_SUCCESS',
UPDATE_SUCCESS: 'horizon.dashboard.project.queues.UPDATE_SUCCESS'
};
}
/**
* @ndoc config
* @name horizon.dashboard.project.queues.basePath
* @description Base path for the queues panel
*/
function config($provide, $windowProvider) {
var path = $windowProvider.$get().STATIC_URL + 'dashboard/project/queues/';
$provide.constant('horizon.dashboard.project.queues.basePath', path);
}
})();