From 93e66347a501e804b8e027b1837b4a2d9678001f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=83=E4=BA=AE=E6=96=8C?= <1129525450@qq.com> Date: Fri, 15 Oct 2021 15:38:02 +0800 Subject: [PATCH] luci-app-jellyfin: remove top tab (#4) --- applications/luci-app-jellyfin/Makefile | 2 +- .../luci-app-jellyfin/luasrc/controller/jellyfin.lua | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/applications/luci-app-jellyfin/Makefile b/applications/luci-app-jellyfin/Makefile index e569306..f996c44 100644 --- a/applications/luci-app-jellyfin/Makefile +++ b/applications/luci-app-jellyfin/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk -PKG_VERSION:=1.0.2 +PKG_VERSION:=1.0.3 PKG_RELEASE:=20211015 LUCI_TITLE:=LuCI support for jellyfin diff --git a/applications/luci-app-jellyfin/luasrc/controller/jellyfin.lua b/applications/luci-app-jellyfin/luasrc/controller/jellyfin.lua index 2257eb0..a649f28 100755 --- a/applications/luci-app-jellyfin/luasrc/controller/jellyfin.lua +++ b/applications/luci-app-jellyfin/luasrc/controller/jellyfin.lua @@ -2,9 +2,8 @@ module("luci.controller.jellyfin", package.seeall) function index() - entry({'admin', 'services', 'jellyfin'}, alias('admin', 'services', 'jellyfin', 'client'), _('Jellyfin'), 10).dependent = true -- 首页 - entry({"admin", "services", "jellyfin",'client'}, cbi("jellyfin/status", {hideresetbtn=true, hidesavebtn=true}), _("Jellyfin"), 20).leaf = true - -- entry({'admin', 'services', 'jellyfin', 'script'}, form('jellyfin/script'), _('Script'), 20).leaf = true -- 直接配置脚本 + entry({'admin', 'services', 'jellyfin'}, alias('admin', 'services', 'jellyfin', 'client'), _('Jellyfin'), 10) + entry({"admin", "services", "jellyfin",'client'}, cbi("jellyfin/status"), nil).leaf = true entry({"admin", "services", "jellyfin","status"}, call("get_container_status")) entry({"admin", "services", "jellyfin","stop"}, post("stop_container"))