Skip to content

Commit

Permalink
Merge pull request #129 from gushil/upstream-release-OC-22820
Browse files Browse the repository at this point in the history
OC-22820 Fixed duplicated success message on Save Draft
  • Loading branch information
svadla-oc authored May 22, 2024
2 parents 925ba00 + 8482a83 commit d413b5e
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions jsapp/js/actions.es6
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ actions.resources.listTags.completed.listen(function(results){
}
});

actions.resources.updateAsset.listen(function(uid, values, params={}) {
actions.resources.updateAsset.listen(function(uid, values, params = {}) {
const crossStorage = getCrossStorageClient();
crossStorage.onConnect()
.then(function() {
Expand Down Expand Up @@ -224,22 +224,6 @@ actions.resources.updateAsset.listen(function(uid, values, params={}) {
});
}
});


dataInterface.patchAsset(uid, values)
.done((asset) => {
actions.resources.updateAsset.completed(asset);
if (typeof params.onComplete === 'function') {
params.onComplete(asset, uid, values);
}
notify(t('successfully updated'));
})
.fail(function(resp){
actions.resources.updateAsset.failed(resp);
if (params.onFailed) {
params.onFailed(resp);
}
});
});

actions.resources.deployAsset.listen(function(asset, redeployment, params={}){
Expand Down

0 comments on commit d413b5e

Please sign in to comment.