mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 03:27:52 +00:00
chore: Use globalConfig in NetworkNotification (#3871)
This commit is contained in:
@@ -19,7 +19,10 @@
|
||||
:multiple="enableMultipleFileUpload"
|
||||
:drop="true"
|
||||
:drop-directory="false"
|
||||
:data="{ direct_upload_url: '/rails/active_storage/direct_uploads', direct_upload: true }"
|
||||
:data="{
|
||||
direct_upload_url: '/rails/active_storage/direct_uploads',
|
||||
direct_upload: true,
|
||||
}"
|
||||
@input-file="onDirectFileUpload"
|
||||
>
|
||||
<woot-button
|
||||
@@ -81,7 +84,7 @@
|
||||
|
||||
<script>
|
||||
import FileUpload from 'vue-upload-component';
|
||||
import * as ActiveStorage from "activestorage";
|
||||
import * as ActiveStorage from 'activestorage';
|
||||
import {
|
||||
hasPressedAltAndWKey,
|
||||
hasPressedAltAndAKey,
|
||||
@@ -152,9 +155,6 @@ export default {
|
||||
default: true,
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
ActiveStorage.start();
|
||||
},
|
||||
computed: {
|
||||
isNote() {
|
||||
return this.mode === REPLY_EDITOR_MODES.NOTE;
|
||||
@@ -176,6 +176,9 @@ export default {
|
||||
return ALLOWED_FILE_TYPES;
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
ActiveStorage.start();
|
||||
},
|
||||
methods: {
|
||||
handleKeyEvents(e) {
|
||||
if (hasPressedAltAndWKey(e)) {
|
||||
|
||||
Reference in New Issue
Block a user