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: 1e6b7dac9980a5018f3dccc039ec411f19d7b75284a8f36078c9e563e7e055fb
4
- data.tar.gz: f763407aed6f02c0b81eee67c3faffe961de1564c2f9d547df2c7f540d5b27dd
3
+ metadata.gz: 0e9fd5d50e755cf594af336712e3ab9b4c49b72b53062c03ade0967df88d490d
4
+ data.tar.gz: 663fa40fd2689e027fb8bad8df84091ff069335e289e349c355058128ec32859
5
5
  SHA512:
6
- metadata.gz: 11eec479d06ce632681aab082ef793ef13664ef69319e6235ed88b9b83a7e2f21372fdb84b0da7e791b5a51a494f69cb5071addebf6096ad05d962bdf0bfee17
7
- data.tar.gz: 01e48d9030c260fa5e882cbc5eaa13e94d1956cd0ed2b5f8355102a0177242ba3827ab9cc92942a82993622737c132eb9f4651dcda7d1c74621a663d3fe5313e
6
+ metadata.gz: '085267ff9a0bd5946de4b9ec80ab22a447cc0aa02d272c13d9ec96ed1073626bdea18f8f2184253c78dc76e3066fddfc3869634e11888bc55fb65e98573ff768'
7
+ data.tar.gz: 4947bf26f8afe7e27c3c6ead6526cbac0799a4d191deceaaac4e1fe281ef3733f042b52b59778b3f73438d1735d55eb07612a75012fdc53f7da9b0b5fd103d45
@@ -16,5 +16,12 @@ $(document).ready(() => {
16
16
  })
17
17
  }
18
18
 
19
- logg('loaded wco_email/contexts.js')
19
+ $('.select2-leads-ajax').select2({
20
+ ajax: {
21
+ url: '/wco/api/leads',
22
+ dataType: 'json',
23
+ }
24
+ })
25
+
26
+ console.log('loaded wco_email/contexts.js')
20
27
  }) // END
@@ -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.134
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-18 00:00:00.000000000 Z
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