mobile_workflow 0.6.11 → 0.6.12
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d81b93d982663b4a2f4a23451a3010c2bdc76abdb79e02bf210aa72489b06542
|
4
|
+
data.tar.gz: 26a83f5aaeb30b261fde054b1af5977bc7a8049766f87ded7c6abf53fea4f8a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6dcddb47aa4cc55eeb777c695fd72a333ec5646774fa94cb1fe1ea882c7ee0d883ee7cf3e5a966eb9a1eb8827ec8fca1fa6ae1894fb282c108e83c67879e431
|
7
|
+
data.tar.gz: 966dd8a57b803f7db1a105fd431bbd9217168b649b02f88fdb49b762dc725c6bc65cfeeb4a1c44a68b8c9516d37c9329a4a605f730cdef194093d7d192bf9e88
|
@@ -4,12 +4,16 @@ module MobileWorkflow
|
|
4
4
|
include Rails.application.routes.url_helpers
|
5
5
|
|
6
6
|
ON_SUCCESS_OPTIONS = [:none, :reload, :backward, :forward]
|
7
|
-
BUTTON_STYLES = [:primary, :outline, :danger]
|
8
|
-
|
7
|
+
BUTTON_STYLES = [:primary, :outline, :danger]
|
8
|
+
|
9
9
|
def mw_list_item(id: self.id, text:, detail_text: nil, sf_symbol_name: nil, image_attachment: nil)
|
10
10
|
mw_list_item = {id: id, text: text, detailText: detail_text, sfSymbolName: sf_symbol_name}
|
11
11
|
mw_list_item[:imageURL] = preview_url(image_attachment, options: { resize_to_fill: [100, 100] }) if image_attachment
|
12
|
-
mw_list_item.compact
|
12
|
+
mw_list_item.compact
|
13
|
+
end
|
14
|
+
|
15
|
+
def mw_map_item(id: self.id, text:, detail_text: nil, latitude:, longitude:)
|
16
|
+
{id: id, text: text, detailText: detail_text, latitude: latitude, longitude: longitude}.compact
|
13
17
|
end
|
14
18
|
|
15
19
|
def mw_display_text(text:, label: nil)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mobile_workflow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Brooke-Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-02-
|
11
|
+
date: 2021-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|