mirror of
https://github.com/luc-github/ESP3D-WEBUI.git
synced 2026-02-20 01:11:21 +01:00
Use new flag Streaming to enable streaming buttons instead of Screen for consistency
This commit is contained in:
@@ -491,6 +491,7 @@ const commandsQuery = (req, res, SendWS) => {
|
||||
FWTargetID: '40',
|
||||
Setup: 'Enabled',
|
||||
Screen: 'HMI V3',
|
||||
Streaming: 'Enabled',
|
||||
SDConnection: 'direct',
|
||||
SerialProtocol: 'Raw',
|
||||
Authentication: 'Disabled',
|
||||
|
||||
BIN
dist/Printer3D/Marlin/index.html.gz
vendored
BIN
dist/Printer3D/Marlin/index.html.gz
vendored
Binary file not shown.
@@ -25,7 +25,7 @@ import { useSettingsContextFn } from '../../../contexts'
|
||||
const capabilities = {
|
||||
Process: (path, filename) => {
|
||||
if (
|
||||
(useSettingsContextFn.getValue('Screen') &&
|
||||
(useSettingsContextFn.getValue('Streaming') == 'Enabled' &&
|
||||
useSettingsContextFn.getValue('SDConnection') == 'direct') ||
|
||||
useSettingsContextFn.getValue('SDConnection') == 'shared'
|
||||
)
|
||||
@@ -118,7 +118,7 @@ const commands = {
|
||||
},
|
||||
play: (path, filename) => {
|
||||
if (
|
||||
useSettingsContextFn.getValue('Screen') &&
|
||||
useSettingsContextFn.getValue('Streaming') == 'Enabled' &&
|
||||
useSettingsContextFn.getValue('SDConnection') == 'direct'
|
||||
) {
|
||||
let fullpath =
|
||||
|
||||
@@ -23,7 +23,7 @@ import { canProcessFile } from '../../helpers'
|
||||
import { useUiContextFn, useSettingsContextFn } from '../../../contexts'
|
||||
const capabilities = {
|
||||
Process: (path, filename) => {
|
||||
if (useSettingsContextFn.getValue('Screen')) {
|
||||
if (useSettingsContextFn.getValue('Streaming') == 'Enabled') {
|
||||
return canProcessFile(filename)
|
||||
}
|
||||
return false
|
||||
@@ -115,7 +115,7 @@ const commands = {
|
||||
},
|
||||
play: (path, filename) => {
|
||||
if (
|
||||
useSettingsContextFn.getValue('Screen') &&
|
||||
useSettingsContextFn.getValue('Streaming') == 'Enabled' &&
|
||||
useSettingsContextFn.getValue('SDConnection') == 'direct'
|
||||
) {
|
||||
let fullpath =
|
||||
|
||||
Reference in New Issue
Block a user