mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
Updated response objects
This commit is contained in:
parent
b7ea4a47f4
commit
a00d849a72
3 changed files with 8 additions and 8 deletions
|
|
@ -21,14 +21,14 @@ $events = array_keys($this->getParam('events', []));
|
|||
data-success="trigger"
|
||||
data-success-param-trigger-events="projects.listWebhooks">
|
||||
|
||||
<div data-ls-if="0 == {{console-webhooks.length}} || undefined == {{console-webhooks.length}}" class="box margin-top margin-bottom">
|
||||
<div data-ls-if="0 == {{console-webhooks.sum}} || undefined == {{console-webhooks.sum}}" class="box margin-top margin-bottom">
|
||||
<h3 class="margin-bottom-small text-bold">No Webhooks Found</h3>
|
||||
|
||||
<p class="margin-bottom-no">You haven't created any webhooks for your project yet.</p>
|
||||
</div>
|
||||
|
||||
<div class="box margin-bottom" data-ls-if="0 != {{console-webhooks.length}}">
|
||||
<ul data-ls-loop="console-webhooks" data-ls-as="webhook" class="list">
|
||||
<div class="box margin-bottom" data-ls-if="0 != {{console-webhooks.sum}}">
|
||||
<ul data-ls-loop="console-webhooks.webhooks" data-ls-as="webhook" class="list">
|
||||
<li class="clear">
|
||||
|
||||
<div data-ui-modal class="modal close sticky-footer" data-button-text="Update" data-button-class="pull-end">
|
||||
|
|
@ -136,7 +136,7 @@ $events = array_keys($this->getParam('events', []));
|
|||
<button class="danger reverse">Delete</button>
|
||||
</form>
|
||||
|
||||
<span data-ls-bind="{{webhook.name}}"></span> (<span data-ls-bind="{{webhook.events.length}}"></span> events)
|
||||
<span data-ls-bind="{{webhook.name}}"></span> (<span data-ls-bind="{{webhook.events.sum}}"></span> events)
|
||||
<span data-ls-if="false === {{webhook.security}}">
|
||||
<small class="text-danger">(SSL/TLS Disabled)</small>
|
||||
</span>
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ class Webhook extends Model
|
|||
])
|
||||
->addRule('events', [
|
||||
'type' => 'string',
|
||||
'description' => 'Function trigger events.',
|
||||
'description' => 'Webhook trigger events.',
|
||||
'default' => [],
|
||||
'example' => ['database.collections.update', 'database.collections.delete'],
|
||||
'array' => true,
|
||||
|
|
|
|||
|
|
@ -366,7 +366,7 @@ class ProjectsConsoleClientTest extends Scope
|
|||
], $this->getHeaders()), []);
|
||||
|
||||
$this->assertEquals(200, $response['headers']['status-code']);
|
||||
$this->assertCount(1, $response['body']);
|
||||
$this->assertCount(1, $response['body']['sum']);
|
||||
|
||||
/**
|
||||
* Test for FAILURE
|
||||
|
|
@ -589,7 +589,7 @@ class ProjectsConsoleClientTest extends Scope
|
|||
], $this->getHeaders()), []);
|
||||
|
||||
$this->assertEquals(200, $response['headers']['status-code']);
|
||||
$this->assertCount(1, $response['body']);
|
||||
$this->assertCount(1, $response['body']['sum']);
|
||||
|
||||
/**
|
||||
* Test for FAILURE
|
||||
|
|
@ -867,7 +867,7 @@ class ProjectsConsoleClientTest extends Scope
|
|||
], $this->getHeaders()), []);
|
||||
|
||||
$this->assertEquals(200, $response['headers']['status-code']);
|
||||
$this->assertCount(1, $response['body']);
|
||||
$this->assertCount(1, $response['body']['sum']);
|
||||
|
||||
/**
|
||||
* Test for FAILURE
|
||||
|
|
|
|||
Loading…
Reference in a new issue