From 39146d578ae006449d1a72c08fb2e539c5e2954b Mon Sep 17 00:00:00 2001 From: Awilum Date: Tue, 14 Jan 2020 17:11:06 +0300 Subject: [PATCH] feat(admin-plugin): update for API's #349 --- .../admin/app/Controllers/ApiController.php | 4 ++-- .../templates/system/api/delivery/add.html | 18 ------------------ .../templates/system/api/delivery/edit.html | 19 +------------------ .../templates/system/api/delivery/index.html | 2 +- 4 files changed, 4 insertions(+), 39 deletions(-) diff --git a/site/plugins/admin/app/Controllers/ApiController.php b/site/plugins/admin/app/Controllers/ApiController.php index ad30310f..1cd0521f 100644 --- a/site/plugins/admin/app/Controllers/ApiController.php +++ b/site/plugins/admin/app/Controllers/ApiController.php @@ -153,7 +153,7 @@ class ApiController extends Controller 'title' => $post_data['title'], 'icon' => $post_data['icon'], 'limit_calls' => (int) $post_data['limit_calls'], - 'limit_rate' => $post_data['limit_rate'], + 'calls' => (int) 0, 'state' => $post_data['state'], 'uuid' => $uuid, 'created_by' => Session::get('uuid'), @@ -236,7 +236,7 @@ class ApiController extends Controller 'title' => $post_data['title'], 'icon' => $post_data['icon'], 'limit_calls' => (int) $post_data['limit_calls'], - 'limit_rate' => $post_data['limit_rate'], + 'calls' => (int) $post_data['calls'], 'state' => $post_data['state'], 'uuid' => $post_data['uuid'], 'created_by' => $post_data['created_by'], diff --git a/site/plugins/admin/templates/system/api/delivery/add.html b/site/plugins/admin/templates/system/api/delivery/add.html index 04bd7842..9e2af3b1 100644 --- a/site/plugins/admin/templates/system/api/delivery/add.html +++ b/site/plugins/admin/templates/system/api/delivery/add.html @@ -16,24 +16,6 @@ {{ tr('admin_help_text_for_api_calls_limit_label') }} -
-
- - -
-
- - -
-
- - -
-
- - -
-
diff --git a/site/plugins/admin/templates/system/api/delivery/edit.html b/site/plugins/admin/templates/system/api/delivery/edit.html index 78635e63..6923cb82 100644 --- a/site/plugins/admin/templates/system/api/delivery/edit.html +++ b/site/plugins/admin/templates/system/api/delivery/edit.html @@ -8,6 +8,7 @@ +
@@ -20,24 +21,6 @@ {{ tr('admin_help_text_for_api_calls_limit_label') }}
-
-
- - -
-
- - -
-
- - -
-
- - -
-
diff --git a/site/plugins/admin/templates/system/api/delivery/index.html b/site/plugins/admin/templates/system/api/delivery/index.html index 26c6f98c..8d6de98b 100644 --- a/site/plugins/admin/templates/system/api/delivery/index.html +++ b/site/plugins/admin/templates/system/api/delivery/index.html @@ -15,7 +15,7 @@ {{ token_data.title }} {{ delivery_token.dirname }} - 0 / {% if(token_data.limit_calls > 0) %}{{ token_data.limit_calls }}{% else %}{% endif %} + {{ token_data.calls }} / {% if(token_data.limit_calls > 0) %}{{ token_data.limit_calls }}{% else %}{% endif %}