@iankibetsh/vue-streamline 1.2.4 → 1.2.5
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.
package/package.json
CHANGED
|
@@ -112,7 +112,15 @@ const useStreamline = (stream, ...initialArgs) => {
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
|
|
115
|
+
const getActionUrl = (action, ...args) => {
|
|
116
|
+
// console.log('getActionUrl called with:', action, args);
|
|
117
|
+
const post = {
|
|
118
|
+
action,
|
|
119
|
+
stream,
|
|
120
|
+
params: args
|
|
121
|
+
}
|
|
122
|
+
return `${streamlineUrl}?${new URLSearchParams(post).toString()}`
|
|
123
|
+
}
|
|
116
124
|
const service = reactive({})
|
|
117
125
|
|
|
118
126
|
// Confirmation wrapper
|
|
@@ -135,6 +143,7 @@ const useStreamline = (stream, ...initialArgs) => {
|
|
|
135
143
|
return {
|
|
136
144
|
loading,
|
|
137
145
|
service: new Proxy(service, handler),
|
|
146
|
+
getActionUrl,
|
|
138
147
|
confirmAction,
|
|
139
148
|
props
|
|
140
149
|
}
|