Bugfixes.

This commit is contained in:
gSpot
2026-03-04 16:22:22 +03:00
parent ebeb870d82
commit ef15f50b9f
12 changed files with 49 additions and 32 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-ruantiblock
PKG_VERSION:=2.1.12
PKG_RELEASE:=1
PKG_RELEASE:=3
PKG_MAINTAINER:=gSpot <https://github.com/gSpotx2f/ruantiblock_openwrt>
LUCI_TITLE:=LuCI support for ruantiblock
LUCI_DEPENDS:=+ruantiblock
@@ -53,13 +53,13 @@ return view.extend({
});
},
delRuabShedules() {
delRuabSchedules() {
this.currentCrontabLines = this.currentCrontabLines.filter(
s => s.match(this.crontabRegexp) ? false : true);
},
delCronSchedule(ev) {
this.delRuabShedules();
this.delRuabSchedules();
return this.writeCronFile();
},
@@ -82,7 +82,7 @@ return view.extend({
tools.execPath
);
this.delRuabShedules();
this.delRuabSchedules();
this.currentCrontabLines.push(task_string);
return this.writeCronFile();
@@ -96,7 +96,6 @@ return view.extend({
cron_hour.disabled = bool;
cron_day_interval.disabled = bool;
// For luci-theme-material
if(bool) {
cron_hour.style.opacity = '50%';
cron_day_interval.style.opacity = '50%';
@@ -93,7 +93,7 @@ return view.extend({
load() {
return Promise.all([
L.resolveDefault(fs.exec(tools.execPath, [ 'raw-status' ]), 1),
fs.exec(tools.execPath, [ 'raw-status' ]),
L.resolveDefault(fs.list(tools.parsersDir), null),
uci.load(tools.appName),
]).catch(e => {