ish_manager 0.1.8.373 → 0.1.8.374

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3520e812ccca2471e7fe71ead1f055303fec0da31efc52ae9f04aff94d80417b
4
- data.tar.gz: a104b9335d5eb91a3bf2dbdd6c436bd89d98d91941ca74c6f429c55e362918b0
3
+ metadata.gz: 39b64d928f290a56cb8566d6e3e41883fbdffa45342900d55cc86d2ac650b01f
4
+ data.tar.gz: f6c64a2bf55a68bfe3ececa0d03ae3b89761db23b29fcb0ebcf1a5fc445b4eec
5
5
  SHA512:
6
- metadata.gz: 10f48c22702c4b201fc3e9e969a5c12386e5483d0bcf926fa08edd948f29affd3f27e6bd6934ee17790bd2d41fcc167d7c809115fa2d170da5ece07c0822f3f0
7
- data.tar.gz: 00716b9b403598d743672c793b2004e16681ab6749cea0bd2c866f08243af596181139b4850c0b7f44f85614bc18e35f111041f4d58e75beb7e959a956e30c61
6
+ metadata.gz: 1b871f0b6e1c35d5dae63efbd7c92f940bfb4cca42e0d0fa132448276db4789594d8644d94ac92f09a4f9d75001c34eac080de100eebf0147a15880df9f29214
7
+ data.tar.gz: 726aded514ecd4998a7be06d37488afa6688020fe4f28d1b3feb5dfcaa3f31ae7e00f1580225ccbb404123f7e16d909dc422a6148b1e32fca6c0c69a6d3fe5cc
@@ -129,34 +129,6 @@ $(function () {
129
129
  $( $(".n-selected")[0] ).html( $("input[type='checkbox'].i-sel:checked").length )
130
130
  })
131
131
 
132
- $(".delete-btn").click(function(e) {
133
- const jwt_token = $("#Config").data('jwt-token')
134
- const action_path = $(this).data('url')
135
- const out = []
136
-
137
- $( $("input[type='checkbox'].i-sel:checked") ).each( idx => {
138
- let val = $($("input[type='checkbox'].i-sel:checked")[idx]).val()
139
- out.push(val)
140
- })
141
-
142
- $.ajax({
143
- url: action_path,
144
- type: 'DELETE',
145
- data: {
146
- ids: out,
147
- jwt_token: jwt_token,
148
- },
149
- success: e => {
150
- logg((e||{}).responseText, 'deleted Ok')
151
- location.reload()
152
- },
153
- error: e => {
154
- logg((e||{}).responseText, 'deleted Err')
155
- },
156
- })
157
-
158
- })
159
-
160
132
  $(".select-all input[type='checkbox']").change((e) => {
161
133
  const count = $("input[type='checkbox'].i-sel:checked").length
162
134
  const new_state = count ? false : true // all will be checked?
@@ -16,4 +16,33 @@ $(document).ready(() => {
16
16
 
17
17
  })
18
18
 
19
+
20
+ $(".delete-btn").click(function(e) {
21
+ const jwt_token = $("#Config").data('jwt-token')
22
+ const action_path = $(this).data('url')
23
+ const out = []
24
+
25
+ $( $("input[type='checkbox'].i-sel:checked") ).each( idx => {
26
+ let val = $($("input[type='checkbox'].i-sel:checked")[idx]).val()
27
+ out.push(val)
28
+ })
29
+
30
+ $.ajax({
31
+ url: action_path,
32
+ type: 'DELETE',
33
+ data: {
34
+ ids: out,
35
+ jwt_token: jwt_token,
36
+ },
37
+ success: e => {
38
+ logg((e||{}).responseText, 'deleted Ok')
39
+ location.reload()
40
+ },
41
+ error: e => {
42
+ logg((e||{}).responseText, 'deleted Err')
43
+ },
44
+ })
45
+
46
+ })
47
+
19
48
  })
@@ -11,8 +11,9 @@ class ::IshManager::EmailConversationsController < IshManager::ApplicationContro
11
11
  if params[:slug]
12
12
  @email_conversations = ::Office::EmailConversation.in_emailtag( params[:slug] )
13
13
  else
14
- @email_conversations = ::Office::EmailConversation.all
14
+ @email_conversations = ::Office::EmailConversation.in_no_trash
15
15
  end
16
+ @email_conversations = @email_conversations.order_by( latest_at: :desc )
16
17
  end
17
18
 
18
19
  def show
@@ -6,11 +6,11 @@
6
6
  = link_to email_conversations_in_emailtag_path(WpTag::EMAILTAG_INBOX) do
7
7
  Inbox (#{Office::EmailConversation.in_inbox.length})
8
8
  = link_to email_conversations_path do
9
- All (#{Office::EmailConversation.all.length})
9
+ Archived (#{Office::EmailConversation.in_no_trash.length})
10
10
  = link_to email_conversations_in_emailtag_path(WpTag::EMAILTAG_TRASH) do
11
11
  Trash (#{Office::EmailConversation.in_emailtag(WpTag::EMAILTAG_TRASH).length})
12
12
 
13
- Selected: #{params[:slug] || 'all' }
13
+ Selected: #{params[:slug] || 'archived' }
14
14
 
15
15
  .actions
16
16
 
@@ -10,6 +10,11 @@
10
10
  #{@email_conversation.subject}
11
11
  (#{@email_conversation.email_messages.all.count})
12
12
 
13
+ .tags.max-width
14
+ Tags:
15
+ = @email_conversation.wp_term_ids
16
+ = @email_conversation.tags.map(&:name).join(", ")
17
+
13
18
  .leads.max-width
14
19
  Leads (#{@email_conversation.leads.length}):
15
20
  %ul
@@ -30,7 +35,6 @@
30
35
  .gray= msg.id
31
36
 
32
37
  .chip.from
33
- -# = msg.from
34
38
  = lead.email
35
39
 
36
40
  .relative
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.373
4
+ version: 0.1.8.374
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox