-
- Downloads
add(feature): SuperAdmin [1] (#4934)
* Add Tenant to AdminPanel
* Rubocop
* fix specs
* esf
* Remove translations
* Add SuperAdmin to exclude list for RolePermissions creation
* Fix js route
* Add missing header
* Fix logic operator in current user serializer
---------
Co-authored-by:
Ahmad Farhat <ahmad.af.farhat@gmail.com>
Showing
- app/assets/locales/en.json 3 additions, 3 deletionsapp/assets/locales/en.json
- app/controllers/api/v1/admin/tenants_controller.rb 21 additions, 9 deletionsapp/controllers/api/v1/admin/tenants_controller.rb
- app/javascript/components/admin/AdminNavSideBar.jsx 9 additions, 0 deletionsapp/javascript/components/admin/AdminNavSideBar.jsx
- app/javascript/components/admin/AdminPanel.jsx 4 additions, 0 deletionsapp/javascript/components/admin/AdminPanel.jsx
- app/javascript/components/admin/tenants/TenantRow.jsx 39 additions, 0 deletionsapp/javascript/components/admin/tenants/TenantRow.jsx
- app/javascript/components/admin/tenants/Tenants.jsx 76 additions, 0 deletionsapp/javascript/components/admin/tenants/Tenants.jsx
- app/javascript/components/admin/tenants/TenantsTable.jsx 61 additions, 0 deletionsapp/javascript/components/admin/tenants/TenantsTable.jsx
- app/javascript/components/admin/tenants/forms/CreateTenantForm.jsx 57 additions, 0 deletions...cript/components/admin/tenants/forms/CreateTenantForm.jsx
- app/javascript/components/home/NavbarSignedIn.jsx 3 additions, 1 deletionapp/javascript/components/home/NavbarSignedIn.jsx
- app/javascript/contexts/auth/AuthProvider.jsx 1 addition, 0 deletionsapp/javascript/contexts/auth/AuthProvider.jsx
- app/javascript/hooks/forms/admin/tenants/useTenantForm.js 72 additions, 0 deletionsapp/javascript/hooks/forms/admin/tenants/useTenantForm.js
- app/javascript/hooks/mutations/admin/tenants/useCreateTenant.jsx 37 additions, 0 deletions...ascript/hooks/mutations/admin/tenants/useCreateTenant.jsx
- app/javascript/main.jsx 2 additions, 0 deletionsapp/javascript/main.jsx
- app/models/role.rb 1 addition, 1 deletionapp/models/role.rb
- app/serializers/current_user_serializer.rb 5 additions, 1 deletionapp/serializers/current_user_serializer.rb
- spec/controllers/admin/tenants_controller_spec.rb 16 additions, 11 deletionsspec/controllers/admin/tenants_controller_spec.rb
Loading
Please register or sign in to comment