1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-16 18:14:04 +02:00

feat(admin-plugin): update controllers for apis' #349

This commit is contained in:
Awilum
2020-02-18 12:28:42 +03:00
parent b8362c126b
commit 2fa114e58c
2 changed files with 6 additions and 2 deletions

View File

@@ -239,7 +239,7 @@ class ApiDeliveryEntriesController extends Controller
$this->flash->addMessage('error', __('admin_message_delivery_entries_api_token_was_not_updated'));
}
return $response->withRedirect($this->router->pathFor('admin.api_tokens.index') . '?api=' . $post_data['api']);
return $response->withRedirect($this->router->pathFor('admin.api_delivery_images.index'));
}
/**

View File

@@ -188,6 +188,10 @@ class ApiDeliveryImagesController extends Controller
'link' => $this->router->pathFor('admin.api_delivery_images.index'),
'title' => __('admin_delivery')
],
'api_delivery_images' => [
'link' => $this->router->pathFor('admin.api_delivery_images.index'),
'title' => __('admin_images')
],
'api_tokens_edit' => [
'link' => $this->router->pathFor('admin.api_delivery_images.edit'),
'title' => __('admin_edit_delivery_token'),
@@ -235,7 +239,7 @@ class ApiDeliveryImagesController extends Controller
$this->flash->addMessage('error', __('admin_message_delivery_images_api_token_was_not_updated'));
}
return $response->withRedirect($this->router->pathFor('admin.api_tokens.index') . '?api=' . $post_data['api']);
return $response->withRedirect($this->router->pathFor('admin.api_delivery_images.index'));
}
/**