diff --git a/webui/index.html b/webui/index.html
index 9803baf..1bc7cad 100644
--- a/webui/index.html
+++ b/webui/index.html
@@ -190,7 +190,14 @@
Embed KPM
Start
diff --git a/webui/page/patch.js b/webui/page/patch.js
index e7540e0..1dc469a 100644
--- a/webui/page/patch.js
+++ b/webui/page/patch.js
@@ -333,6 +333,8 @@ async function embedKPM() {
function patch(type) {
const terminal = document.querySelector('#patch-terminal');
const pageContent = terminal.closest('.page-content');
+ const flashToDevice = document.getElementById('flash-to-device');
+
const onOutput = (data) => {
terminal.innerHTML += `
${data}
`;
pageContent.scrollTo({ top: pageContent.scrollHeight, behavior: 'smooth' });
@@ -348,7 +350,7 @@ function patch(type) {
args.push(
`${modDir}/patch/boot_patch.sh`,
bootDev,
- 'true'
+ flashToDevice.selected ? 'true' : 'false'
);
// New kpm
diff --git a/webui/public/locales/strings/en.xml b/webui/public/locales/strings/en.xml
index 2ce24df..e55c811 100644
--- a/webui/public/locales/strings/en.xml
+++ b/webui/public/locales/strings/en.xml
@@ -35,6 +35,7 @@
Show system app
System Default
Trigger Event
+
Flash to Device
Not installed
Working 😋
diff --git a/webui/public/locales/strings/zh-CN.xml b/webui/public/locales/strings/zh-CN.xml
index 66b37da..b2eb434 100644
--- a/webui/public/locales/strings/zh-CN.xml
+++ b/webui/public/locales/strings/zh-CN.xml
@@ -35,6 +35,7 @@
显示系统应用
系统默认
触发事件
+
直接安装
未安装
工作中 😋
diff --git a/webui/styles.css b/webui/styles.css
index 6ef550b..186d841 100644
--- a/webui/styles.css
+++ b/webui/styles.css
@@ -221,6 +221,24 @@ body {
transition: all 0.2s ease;
}
+.switch-card {
+ width: 100%;
+ border-radius: 20px;
+ background-color: var(--md-sys-color-tonal-surface);
+ word-wrap: break-word;
+ position: relative;
+}
+
+.switch-card label {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ width: 100%;
+ padding: 20px;
+ box-sizing: border-box;
+ font-size: 1.1em;
+}
+
.search-hidden {
display: none !important;
}