-
Notifications
You must be signed in to change notification settings - Fork 731
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #4482 - Pre-defined webhooks ready to use.
Co-authored-by: Dusan Vuckovic <dv@zammad.com> Co-authored-by: Dominik Klein <dk@zammad.com> Co-authored-by: Tobias Schäfer <ts@zammad.com>
- Loading branch information
1 parent
388d806
commit ac4c740
Showing
38 changed files
with
1,027 additions
and
119 deletions.
There are no files selected for viewing
8 changes: 4 additions & 4 deletions
8
app/assets/javascripts/app/controllers/_application_controller/_generic_index.coffee
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
app/assets/javascripts/app/controllers/_ui_element/switch.coffee
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# coffeelint: disable=camel_case_classes | ||
class App.UiElement.switch | ||
@render: (attributeConfig) -> | ||
item = $( App.view('generic/switch')( attribute: attributeConfig ) ) | ||
item.find('input').data('field-type', 'boolean') | ||
item |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
class App.PreDefinedWebhook extends App.Model | ||
@configure 'PreDefinedWebhook', 'name', 'custom_payload', 'fields' | ||
@extend Spine.Model.Ajax | ||
@url: @apiPath + '/webhooks/pre_defined' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<div class="<%= @attribute.class %> horizontal-filters-switch horizontal-filters-switch--align-start"> | ||
<label> | ||
<%- @T(@attribute.display) %> | ||
<div class="zammad-switch zammad-switch--small js-switch"> | ||
<input name="<%= @attribute.name %>" type="checkbox" value="true" id="attribute-<%= @attribute.name %>" <% if @attribute.value: %>checked<% end %> <% if @attribute.disabled: %>disabled<% end %>> | ||
<label for="attribute-<%= @attribute.name %>"></label> | ||
</div> | ||
</label> | ||
<% if @attribute.note: %><span class="help-text"><%- @T(@attribute.note) %></span><% end %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.