@iankibetsh/shframework 2.0.2 → 2.0.3
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/dist/library.js +6 -1
- package/dist/library.mjs +6 -1
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -4007,6 +4007,9 @@ var script$d = {
|
|
|
4007
4007
|
url: {
|
|
4008
4008
|
type: String,
|
|
4009
4009
|
required: true
|
|
4010
|
+
},
|
|
4011
|
+
disableSuccessMessage: {
|
|
4012
|
+
type: Boolean
|
|
4010
4013
|
}
|
|
4011
4014
|
},
|
|
4012
4015
|
emits: ['actionSuccessful','actionFailed','success'],
|
|
@@ -4023,7 +4026,9 @@ const actionSuccessful = (res)=>{
|
|
|
4023
4026
|
console.log(res.data,props.successMessage);
|
|
4024
4027
|
emit('actionSuccessful',res);
|
|
4025
4028
|
emit('success',res);
|
|
4026
|
-
|
|
4029
|
+
if(!props.disableSuccessMessage) {
|
|
4030
|
+
shRepo.showToast(res.data.message ?? props.successMessage);
|
|
4031
|
+
}
|
|
4027
4032
|
};
|
|
4028
4033
|
|
|
4029
4034
|
const actionFailed = reason =>{
|
package/dist/library.mjs
CHANGED
|
@@ -3995,6 +3995,9 @@ var script$d = {
|
|
|
3995
3995
|
url: {
|
|
3996
3996
|
type: String,
|
|
3997
3997
|
required: true
|
|
3998
|
+
},
|
|
3999
|
+
disableSuccessMessage: {
|
|
4000
|
+
type: Boolean
|
|
3998
4001
|
}
|
|
3999
4002
|
},
|
|
4000
4003
|
emits: ['actionSuccessful','actionFailed','success'],
|
|
@@ -4011,7 +4014,9 @@ const actionSuccessful = (res)=>{
|
|
|
4011
4014
|
console.log(res.data,props.successMessage);
|
|
4012
4015
|
emit('actionSuccessful',res);
|
|
4013
4016
|
emit('success',res);
|
|
4014
|
-
|
|
4017
|
+
if(!props.disableSuccessMessage) {
|
|
4018
|
+
shRepo.showToast(res.data.message ?? props.successMessage);
|
|
4019
|
+
}
|
|
4015
4020
|
};
|
|
4016
4021
|
|
|
4017
4022
|
const actionFailed = reason =>{
|