Skip to content

Commit

Permalink
指摘事項修正
Browse files Browse the repository at this point in the history
  • Loading branch information
nanasess committed Aug 4, 2020
1 parent eb5f413 commit ce442ea
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
14 changes: 9 additions & 5 deletions ApiNav.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ApiNav implements EccubeNav
*/
public static function getNav()
{
return [
$menu = [
'setting' => [
'children' => [
'api' => [
Expand All @@ -36,14 +36,18 @@ public static function getNav()
'name' => 'api.admin.webhook.management',
'url' => 'admin_api_webhook',
],
'graphiql' => [
'name' => 'api.admin.oauth.graphiql',
'url' => 'admin_api_graphiql',
],
],
],
],
],
];
if ('dev' === env('APP_ENV')) {
$menu['setting']['children']['api']['children']['graphiql'] = [
'name' => 'api.admin.graphiql.name',
'url' => 'admin_api_graphiql',
];
}

return $menu;
}
}
3 changes: 2 additions & 1 deletion Resource/locale/messages.en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ api:
allow__confirm_description: 'Allow this app to:'
allow: Allow
deny: Deny
graphiql: GraphiQL
webhook:
management: WebHook
registration: WebHook Registration
Expand All @@ -34,6 +33,8 @@ api:
search_no_result_message: No WebHooks.
delete__confirm_title: Delete a WebHook
delete__confirm_message: Are you sure to delete this WebHook?
graphiql:
name: GraphiQL

#------------------------------------------------------------------------------------
# API
Expand Down
4 changes: 2 additions & 2 deletions Resource/locale/messages.ja.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ api:
allow__confirm_description: 'このアプリに以下を許可します:'
allow: 許可する
deny: 許可しない
graphiql: GraphiQL
webhook:
management: WebHook管理
registration: WebHook登録
Expand All @@ -34,7 +33,8 @@ api:
search_no_result_message: WebHookが登録されていません
delete__confirm_title: WebHookを削除します
delete__confirm_message: WebHookを削除してもよろしいですか?

graphiql:
name: GraphiQL
#------------------------------------------------------------------------------------
# API
#------------------------------------------------------------------------------------
Expand Down

0 comments on commit ce442ea

Please sign in to comment.