Skip to content

Commit

Permalink
Merge pull request #96 from jemu75/dev-v4
Browse files Browse the repository at this point in the history
v4.1.2
  • Loading branch information
jemu75 authored May 2, 2024
2 parents 086eadf + bffbf60 commit eebb5fd
Show file tree
Hide file tree
Showing 12 changed files with 30 additions and 19 deletions.
5 changes: 5 additions & 0 deletions public/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# v4.1.2 (02.05.2024)
## Settings
- bugfix back button at panel and template settings
## Panel Button
- bugfix for touchdevices
# v4.1.1 (29.04.2024)
## Panel Button
- bugfix if fhem command will be send
Expand Down
4 changes: 1 addition & 3 deletions src/components/AppNavigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@
</script>

<template>
<span v-for="(item, idx) of items" :key="item.name">
<span v-for="(item, idx) of items" :key="idx">
<v-list-item
v-if="(!item.group || item.group.length < 1) && !isChip"
:key="idx"
:title="fhem.replacer(item.title, '') || item.name"
:prepend-icon="item.icon"
rounded="pill"
Expand All @@ -35,7 +34,6 @@
v-if="(!item.group || item.group.length < 1) && isChip"
class="my-1 ml-2"
:prepend-icon="item.icon"
:key="idx"
@click="loadView(idx)"
>
{{ fhem.replacer(item.title, '') || item.name }}
Expand Down
9 changes: 6 additions & 3 deletions src/components/PanelMainBtn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,17 @@
function btnClick(evt) {
let click = fhem.handleDefs(props.el.click, ['cmd', 'type'], ['', 'cmd'], false, null, true),
longClick = fhem.handleDefs(props.el.longClick, ['cmd', 'type'], ['', 'cmd'], false, null, true),
longRelease = fhem.handleDefs(props.el.longRelease, ['cmd', 'type'], ['', 'cmd'], false, null, true)
longRelease = fhem.handleDefs(props.el.longRelease, ['cmd', 'type'], ['', 'cmd'], false, null, true),
isTouch = 'ontouchstart' in document
if(evt === 'mouseStart') {
if((!isTouch && evt === 'mouseStart') || evt === 'touchStart') {
btnState.timer = setTimeout(() => {
btnState.long = true
if(longClick.cmd) doCmd(longClick)
}, 1000)
}
if(evt === 'mouseEnd') {
if((!isTouch && evt === 'mouseEnd') || evt === 'touchEnd') {
if(btnState.long) {
if(longRelease.cmd) doCmd(longRelease)
} else {
Expand All @@ -91,7 +92,9 @@
:disabled="btn.disabled"
:color="btn.color"
@mousedown="btnClick('mouseStart')"
@touchstart="btnClick('touchStart')"
@mouseup="btnClick('mouseEnd')"
@touchend="btnClick('touchEnd')"
class="my-2">
<v-icon size="large">
{{ btn.icon }}
Expand Down
2 changes: 1 addition & 1 deletion src/components/SettingsProps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
}
watch(router.currentRoute, (val) => {
if(val.params.item) editItem(val.params.item)
editItem(val.params.item)
})
watch(() => fhem.app.isReady, (val) => {
Expand Down
5 changes: 5 additions & 0 deletions www/fhemapp4/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# v4.1.2 (02.05.2024)
## Settings
- bugfix back button at panel and template settings
## Panel Button
- bugfix for touchdevices
# v4.1.1 (29.04.2024)
## Panel Button
- bugfix if fhem command will be send
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit eebb5fd

Please sign in to comment.