This commit is contained in:
2023-08-29 20:06:52 +02:00
parent 7c2eec4446
commit 25702c073a
225 changed files with 1071 additions and 808 deletions

View File

@@ -1,4 +1,4 @@
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
module.exports = function (actionAPI) {
//Handle the action when executed
actionAPI.handle(function (properties, status) {
@@ -13,8 +13,9 @@ module.exports = function (actionAPI) {
.setSource(sourceID)
.then(function () {
status('Source was set');
})["catch"](function (error) {
status("Error whilst setting source: " + error.message, 'error');
})
.catch(function (error) {
status("Error whilst setting source: ".concat(error.message), 'error');
});
}
}
@@ -83,7 +84,8 @@ module.exports = function (actionAPI) {
return { id: source, text: source };
});
callback();
})["catch"](function (error) {
})
.catch(function (error) {
fields[1].values = [];
callback();
});