Bugfixes
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
||||
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
||||
to[j] = from[i];
|
||||
return to;
|
||||
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
||||
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
||||
if (ar || !(i in from)) {
|
||||
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
||||
ar[i] = from[i];
|
||||
}
|
||||
}
|
||||
return to.concat(ar || Array.prototype.slice.call(from));
|
||||
};
|
||||
exports.__esModule = true;
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
module.exports = function (actionAPI) {
|
||||
actionAPI.handle(function (properties, status, executed) {
|
||||
if (properties.page != undefined) {
|
||||
@@ -23,9 +27,9 @@ module.exports = function (actionAPI) {
|
||||
failed.push(serialNumber);
|
||||
}
|
||||
if (failed.length == 0)
|
||||
status("Changed " + changed.length + " deck(s) to page '" + page.name + "'", 'info');
|
||||
status("Changed ".concat(changed.length, " deck(s) to page '").concat(page.name, "'"), 'info');
|
||||
else
|
||||
status("Deck(s) '" + failed.join(', ') + "' were not found, only changed " + changed.length + " deck(s) to page '" + page.name + "'", 'warn');
|
||||
status("Deck(s) '".concat(failed.join(', '), "' were not found, only changed ").concat(changed.length, " deck(s) to page '").concat(page.name, "'"), 'warn');
|
||||
}
|
||||
else
|
||||
status('No decks selected', 'error');
|
||||
@@ -71,7 +75,7 @@ module.exports = function (actionAPI) {
|
||||
{ id: 'current', text: 'Current Deck' }
|
||||
], Undecked.Decks.getList().map(function (deck) {
|
||||
return { id: deck.serialNumber, text: deck.name };
|
||||
}));
|
||||
}), true);
|
||||
}
|
||||
function getPageValues() {
|
||||
return Undecked.Pages.getNames().map(function (page) {
|
||||
|
||||
Reference in New Issue
Block a user