@afeefa/vue-app 0.0.239 → 0.0.240
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.
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.240
|
package/package.json
CHANGED
@@ -11,6 +11,7 @@ export class ApiAction extends ApiResourcesApiAction {
|
|
11
11
|
_minDuration = 100
|
12
12
|
_startTime = 0
|
13
13
|
_showError = true
|
14
|
+
_alert = null
|
14
15
|
|
15
16
|
id (id) {
|
16
17
|
if (id) {
|
@@ -99,10 +100,14 @@ export class ApiAction extends ApiResourcesApiAction {
|
|
99
100
|
}
|
100
101
|
}
|
101
102
|
|
102
|
-
alert (
|
103
|
-
|
104
|
-
|
105
|
-
|
103
|
+
alert (alert) {
|
104
|
+
this._alert = alert
|
105
|
+
return this
|
106
|
+
}
|
107
|
+
|
108
|
+
_showAlert (message) {
|
109
|
+
const alert = this._alert || {message}
|
110
|
+
eventBus.dispatch(new AlertEvent(AlertEvent.MESSAGE, alert))
|
106
111
|
}
|
107
112
|
}
|
108
113
|
|