Commit ed498a41 authored by xiaohua guan's avatar xiaohua guan Committed by Yas Naoi
Browse files

Issue #3319231 by Xiaohua Guan, yas: Add the OpenStack Quota list view

parent 9042853d
Loading
Loading
Loading
Loading
+1404 −0

File added.

Preview size limit exceeded, changes collapsed.

+12 −0
Original line number Diff line number Diff line
@@ -1687,3 +1687,15 @@ function openstack_update_8275() {
function openstack_update_8276() {
  openstack_add_entity_type('openstack_quota');
}

/**
 * Add openstack_quota view.
 */
function openstack_update_8277() {
  $files = [
    'views.view.openstack_quota.yml',
  ];

  \Drupal::service('cloud')->updateYmlDefinitions($files, 'openstack');
  drupal_flush_all_caches();
}
+29 −0
Original line number Diff line number Diff line
@@ -586,3 +586,32 @@ entity.openstack_router.add_interface:
  title: 'Add interface'
  appears_on:
    - view.openstack_port.router_interface

##############################
# OpenStack Quota.
##############################

entity.openstack_quota.collection:
  route_name: view.openstack_quota.list
  title: 'List OpenStack quotas'
  appears_on:
    - entity.openstack_quota.edit_form
    - entity.openstack_quota.canonical

entity.openstack_quota.refresh:
  route_name: entity.openstack_quota.list_update
  title: 'Refresh'
  appears_on:
    - view.openstack_quota.list

entity.openstack_all_quota.refresh:
  route_name: entity.openstack_quota.list_update.all
  title: 'Refresh'
  appears_on:
    - view.openstack_quota.all

entity.openstack_quota.edit:
  route_name: entity.openstack_quota.edit_form
  title: 'Edit'
  appears_on:
    - entity.openstack_quota.canonical
+12 −0
Original line number Diff line number Diff line
@@ -150,6 +150,18 @@ openstack.local_tasks.router.all:
  base_route: 'openstack.local_tasks.all_resources'
  weight: 100

openstack.local_tasks.quota:
  title: 'Quotas'
  route_name: 'view.openstack_quota.list'
  base_route: 'openstack.local_tasks.cloud_context'
  weight: 100

openstack.local_tasks.quota.all:
  title: 'Quotas'
  route_name: 'view.openstack_quota.all'
  base_route: 'openstack.local_tasks.all_resources'
  weight: 100

# OpenStack Instance routing definition
openstack_instance.settings_tab:
  route_name: openstack_instance.settings
+0 −9
Original line number Diff line number Diff line
@@ -381,9 +381,6 @@ delete own openstack router:
####################
# Quotas
####################
add openstack quota:
  title: 'Add OpenStack quota'
  description: 'Allow users to add quota.'
list openstack quota:
  title: 'List OpenStack quota'
  description: 'Allow users to list quota.'
@@ -393,15 +390,9 @@ view any openstack quota:
edit any openstack quota:
  title: 'Edit any OpenStack quota'
  description: 'Allow users to edit any quota.'
delete any openstack quota:
  title: 'Delete any OpenStack quota'
  description: 'Allow users to delete any quota.'
view own openstack quota:
  title: 'View own OpenStack quota'
  description: 'Allow users to view own quota.'
edit own openstack quota:
  title: 'Edit own OpenStack quota'
  description: 'Allow users to edit own quota.'
delete own openstack quota:
  title: 'Delete own OpenStack quota'
  description: 'Allow users to delete own quota.'
Loading