Skip to content

Commit

Permalink
fix: 1.When the first day of a week is not set, an exception occurs i…
Browse files Browse the repository at this point in the history
…n the plug-in. 2.The text for setting the first day of a week is not displayed.
  • Loading branch information
RogerHuHu committed Feb 29, 2024
1 parent e9083cf commit e489737
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,9 @@

## v1.2.8
### feat:
1. 支持设置一周开始时间 [#37]
1. 支持设置一周开始时间 [#37]

## v1.2.9
### fix:
1. 未设置一周从哪天开始时,插件出现异常 [#38]
2. 设置一周从哪天开始设置项的文字未显示
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "siyuan-plugin-schedule-manager",
"author": "RogerHuHu",
"url": "https://github.com/RogerHuHu/siyuan-plugin-schedule-manager",
"version": "1.2.8",
"version": "1.2.9",
"minAppVersion": "2.10.6",
"backends": ["all"],
"frontends": ["all"],
Expand Down
2 changes: 1 addition & 1 deletion src/ScheduleManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ export class ScheduleManager {
doc.archiveTime = response.data['custom-archiveTime'];
doc.firstDayOfWeek = response.data["custom-firstDayOfWeek"];
globalData.archiveTime = doc.archiveTime === undefined ? 7 : parseInt(doc.archiveTime, 10);
globalData.selectedFirstDayOfWeek = doc.firstDayOfWeek;
globalData.selectedFirstDayOfWeek = doc.firstDayOfWeek === undefined ? 0 : doc.firstDayOfWeek;
})
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/i18n/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@
"confirmRemove": "Confirm to delete the data in ${name}?",
"insertEmoji": "Insert Emoji",
"archiveTime": "Archive time",
"hasUpdated": "Has updated"
"hasUpdated": "Has updated",
"firstdayOfWeek": "First day of week"
}
3 changes: 2 additions & 1 deletion src/i18n/zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@
"confirmRemove": "确认删除 ${name} 中的数据?",
"insertEmoji": "插入表情",
"archiveTime": "归档时间",
"hasUpdated": "已更新"
"hasUpdated": "已更新",
"firstDayOfWeek": "一周开始"
}

0 comments on commit e489737

Please sign in to comment.