Merge pull request #678 from mirumee/fix/groups-navigator
Add apps and permission groups to navigator
This commit is contained in:
commit
5b849935f9
2 changed files with 11 additions and 0 deletions
|
@ -28,6 +28,7 @@ All notable, unreleased changes to this project will be documented in this file.
|
||||||
- Fix user management modal actions - #637 by @eaglesemanation
|
- Fix user management modal actions - #637 by @eaglesemanation
|
||||||
- Fix navigator button rendering on safari browser - #656 by @dominik-zeglen
|
- Fix navigator button rendering on safari browser - #656 by @dominik-zeglen
|
||||||
- Use hooks instead of containers with render props in product mutations - #667 by @dominik-zeglen
|
- Use hooks instead of containers with render props in product mutations - #667 by @dominik-zeglen
|
||||||
|
- Add apps and permission groups to navigator - #678 by @dominik-zeglen
|
||||||
|
|
||||||
## 2.10.1
|
## 2.10.1
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import { appsListUrl } from "@saleor/apps/urls";
|
||||||
import { attributeListUrl } from "@saleor/attributes/urls";
|
import { attributeListUrl } from "@saleor/attributes/urls";
|
||||||
import { categoryListUrl } from "@saleor/categories/urls";
|
import { categoryListUrl } from "@saleor/categories/urls";
|
||||||
import { collectionListUrl } from "@saleor/collections/urls";
|
import { collectionListUrl } from "@saleor/collections/urls";
|
||||||
|
@ -8,6 +9,7 @@ import { sectionNames } from "@saleor/intl";
|
||||||
import { menuListUrl } from "@saleor/navigation/urls";
|
import { menuListUrl } from "@saleor/navigation/urls";
|
||||||
import { orderDraftListUrl, orderListUrl } from "@saleor/orders/urls";
|
import { orderDraftListUrl, orderListUrl } from "@saleor/orders/urls";
|
||||||
import { pageListUrl } from "@saleor/pages/urls";
|
import { pageListUrl } from "@saleor/pages/urls";
|
||||||
|
import { permissionGroupListUrl } from "@saleor/permissionGroups/urls";
|
||||||
import { pluginListUrl } from "@saleor/plugins/urls";
|
import { pluginListUrl } from "@saleor/plugins/urls";
|
||||||
import { productListUrl } from "@saleor/products/urls";
|
import { productListUrl } from "@saleor/products/urls";
|
||||||
import { productTypeListUrl } from "@saleor/productTypes/urls";
|
import { productTypeListUrl } from "@saleor/productTypes/urls";
|
||||||
|
@ -32,6 +34,10 @@ function searchInViews(
|
||||||
navigate: UseNavigatorResult
|
navigate: UseNavigatorResult
|
||||||
): QuickSearchActionInput[] {
|
): QuickSearchActionInput[] {
|
||||||
const views: View[] = [
|
const views: View[] = [
|
||||||
|
{
|
||||||
|
label: intl.formatMessage(sectionNames.apps),
|
||||||
|
url: appsListUrl()
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: intl.formatMessage(sectionNames.attributes),
|
label: intl.formatMessage(sectionNames.attributes),
|
||||||
url: attributeListUrl()
|
url: attributeListUrl()
|
||||||
|
@ -68,6 +74,10 @@ function searchInViews(
|
||||||
label: intl.formatMessage(sectionNames.pages),
|
label: intl.formatMessage(sectionNames.pages),
|
||||||
url: pageListUrl()
|
url: pageListUrl()
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: intl.formatMessage(sectionNames.permissionGroups),
|
||||||
|
url: permissionGroupListUrl()
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: intl.formatMessage(sectionNames.plugins),
|
label: intl.formatMessage(sectionNames.plugins),
|
||||||
url: pluginListUrl()
|
url: pluginListUrl()
|
||||||
|
|
Loading…
Reference in a new issue