Skip to content

Commit b370ad7

Browse files
committed
Release 1.0.0-29
1 parent 24d542c commit b370ad7

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "zotero-actions-tags",
3-
"version": "1.0.0-28",
3+
"version": "1.0.0-29",
44
"description": "Action it, tag it, sorted.",
55
"config": {
66
"addonName": "Actions and Tags for Zotero",

src/modules/preferenceWindow.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ async function initUI() {
1919
const renderLock = Zotero.Promise.defer();
2020
if (!isWindowAlive(addon.data.prefs.window)) return;
2121
addon.data.prefs.tableHelper = new ztoolkit.VirtualizedTable(
22-
addon.data.prefs.window!
22+
addon.data.prefs.window!,
2323
)
2424
.setContainerId(`${config.addonRef}-table-container`)
2525
.setProp({
@@ -40,13 +40,13 @@ async function initUI() {
4040
addon.data.prefs.window?.document
4141
.querySelectorAll(".action-selection")
4242
?.forEach((e) =>
43-
setButtonDisabled(e as XUL.Button, selectedKeys.length === 0)
43+
setButtonDisabled(e as XUL.Button, selectedKeys.length === 0),
4444
);
4545

4646
addon.data.prefs.window?.document
4747
.querySelectorAll(".action-selection-single")
4848
?.forEach((e) =>
49-
setButtonDisabled(e as XUL.Button, selectedKeys.length !== 1)
49+
setButtonDisabled(e as XUL.Button, selectedKeys.length !== 1),
5050
);
5151
})
5252
// When pressing delete, delete selected line and refresh table.
@@ -97,7 +97,7 @@ function initEvents() {
9797
.querySelector(`#${config.addonRef}-action-add`)
9898
?.addEventListener("command", (e) => {
9999
const key = addon.api.actionManager.updateAction(
100-
Object.assign({}, emptyAction)
100+
Object.assign({}, emptyAction),
101101
);
102102
updateUI();
103103
editAndUpdate(key);
@@ -123,14 +123,14 @@ function initEvents() {
123123
?.addEventListener("command", async (e) => {
124124
const newAction = Object.assign(
125125
{},
126-
addon.data.actions.map.get(addon.data.actions.selectedKey!)
126+
addon.data.actions.map.get(addon.data.actions.selectedKey!),
127127
);
128128
if (newAction.name) {
129129
// Add (1) (2) ... to the end of the name
130130
if (newAction.name.match(/\(\d+\)$/)) {
131131
newAction.name = newAction.name.replace(
132132
/\((\d+)\)$/,
133-
(_, num) => `(${parseInt(num) + 1})`
133+
(_, num) => `(${parseInt(num) + 1})`,
134134
);
135135
} else {
136136
newAction.name += " (1)";
@@ -181,7 +181,7 @@ function getRowData(index: number) {
181181
return {
182182
event: getString(`prefs-action-event-${ActionEventTypes[action.event]}`),
183183
operation: getString(
184-
`prefs-action-operation-${ActionOperationTypes[action.operation]}`
184+
`prefs-action-operation-${ActionOperationTypes[action.operation]}`,
185185
),
186186
data: action.data,
187187
shortcut: action.shortcut,

update-beta.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
44
"updates": [
55
{
6-
"version": "1.0.0-28",
7-
"update_link": "https://github.com/windingwind/zotero-actions-tags/releases/download/v1.0.0-28/zotero-actions-tags.xpi",
6+
"version": "1.0.0-29",
7+
"update_link": "https://github.com/windingwind/zotero-actions-tags/releases/download/v1.0.0-29/zotero-actions-tags.xpi",
88
"applications": {
99
"zotero": {
1010
"strict_min_version": "6.999"

0 commit comments

Comments
 (0)