mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-03 04:27:53 +00:00
feat: toggle reply to on widget based on feature flag (#8261)
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
This commit is contained in:
@@ -19,6 +19,10 @@ export default {
|
||||
required: true,
|
||||
validator: value => ['left', 'right'].includes(value),
|
||||
},
|
||||
disabled: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -29,9 +33,11 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
handleTouchStart(event) {
|
||||
if (this.disabled) return;
|
||||
this.startX = event.touches[0].clientX;
|
||||
},
|
||||
handleTouchMove(event) {
|
||||
if (this.disabled) return;
|
||||
const touchX = event.touches[0].clientX;
|
||||
let deltaX = touchX - this.startX;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user