wco_email 0.1.1.134 → 0.1.1.135
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0e9fd5d50e755cf594af336712e3ab9b4c49b72b53062c03ade0967df88d490d
|
|
4
|
+
data.tar.gz: 663fa40fd2689e027fb8bad8df84091ff069335e289e349c355058128ec32859
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '085267ff9a0bd5946de4b9ec80ab22a447cc0aa02d272c13d9ec96ed1073626bdea18f8f2184253c78dc76e3066fddfc3869634e11888bc55fb65e98573ff768'
|
|
7
|
+
data.tar.gz: 4947bf26f8afe7e27c3c6ead6526cbac0799a4d191deceaaac4e1fe281ef3733f042b52b59778b3f73438d1735d55eb07612a75012fdc53f7da9b0b5fd103d45
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
|
|
2
2
|
class WcoEmail::Api::ConversationsController < WcoEmail::ApiController
|
|
3
3
|
|
|
4
|
+
def destroy_many
|
|
5
|
+
authorize! :edit, WcoEmail::Conversation
|
|
6
|
+
@convs = WcoEmail::Conversation.find( params[:ids] )
|
|
7
|
+
@convs.each { |c| c.destroy! }
|
|
8
|
+
render json: { status: 'ok', message: 'probably ok' }
|
|
9
|
+
end
|
|
10
|
+
|
|
4
11
|
def index
|
|
5
12
|
authorize! :index, WcoEmail::Conversation
|
|
6
13
|
@conversations, @messages, @tag = WcoEmail::Conversation.load_conversations_messages_tag_by_params_and_profile( params, current_profile )
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
= f.check_box :bcc_self, checked: true
|
|
23
23
|
.field
|
|
24
24
|
%label To lead
|
|
25
|
-
= f.select :lead_id, options_for_select( @leads_list, selected: ctx.lead_id ), {}, { class: 'select2' }
|
|
25
|
+
= f.select :lead_id, options_for_select( @leads_list, selected: ctx.lead_id ), {}, { class: 'select2-leads-ajax' }
|
|
26
26
|
.field
|
|
27
27
|
%label cc
|
|
28
28
|
= f.text_field :cc, class: 'w-100'
|
|
@@ -16,6 +16,11 @@
|
|
|
16
16
|
= render '/wco_email/conversations/tags_actions'
|
|
17
17
|
= render '/wco/office_actions/actions'
|
|
18
18
|
|
|
19
|
+
.actions.d-flex
|
|
20
|
+
.a.mr-2= button_tag 'Delete', method: :delete, class: 'delete-btn', data: { url: '/email/api/conversations' }
|
|
21
|
+
|
|
22
|
+
= render 'wco/tags/actions', resource: 'WcoEmail::Conversation'
|
|
23
|
+
|
|
19
24
|
= render '/wco/paginate', resource: @conversations, param_name: ::WcoEmail::Conversation::PAGE_PARAM_NAME
|
|
20
25
|
= render '/wco_email/conversations/table', convs: @conversations
|
|
21
26
|
= render '/wco/paginate', resource: @conversations, param_name: ::WcoEmail::Conversation::PAGE_PARAM_NAME
|
data/config/routes.rb
CHANGED
|
@@ -8,6 +8,7 @@ WcoEmail::Engine.routes.draw do
|
|
|
8
8
|
|
|
9
9
|
get 'api/contexts/summary', to: '/wco_email/api/contexts#summary'
|
|
10
10
|
get 'api/conversations', to: '/wco_email/api/conversations#index'
|
|
11
|
+
delete 'api/conversations', to: '/wco_email/api/conversations#destroy_many'
|
|
11
12
|
get 'api/email_action_templates', to: '/wco_email/api/email_action_templates#index'
|
|
12
13
|
get 'api/email_filters', to: '/wco_email/api/email_filters#index', defaults: { format: :json }
|
|
13
14
|
get 'api/email_filters/:id', to: '/wco_email/api/email_filters#show'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wco_email
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.1.
|
|
4
|
+
version: 0.1.1.135
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Victor Pudeyev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-07-
|
|
11
|
+
date: 2026-07-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-s3
|