Disable host check, fix router url
This commit is contained in:
parent
52194116b3
commit
fa0904386f
3 changed files with 5 additions and 2 deletions
|
@ -64,7 +64,7 @@ export default {
|
|||
methods: {
|
||||
cardClick(chat) {
|
||||
router.push({
|
||||
path: `/conversations/${chat.id}`,
|
||||
path: `/u/conversations/${chat.id}`,
|
||||
});
|
||||
},
|
||||
extractMessageText(chatItem) {
|
||||
|
|
|
@ -13,7 +13,7 @@ class Conversation < ApplicationRecord
|
|||
belongs_to :account
|
||||
belongs_to :inbox
|
||||
belongs_to :assignee, class_name: 'User', optional: true
|
||||
belongs_to :sender, class_name: 'Contact' #, primary_key: :source_id
|
||||
belongs_to :sender, class_name: 'Contact', primary_key: :source_id
|
||||
|
||||
has_many :messages, dependent: :destroy, autosave: true
|
||||
|
||||
|
|
|
@ -63,4 +63,7 @@ Rails.application.configure do
|
|||
# Use an evented file watcher to asynchronously detect changes in source code,
|
||||
# routes, locales, etc. This feature depends on the listen gem.
|
||||
config.file_watcher = ActiveSupport::EventedFileUpdateChecker
|
||||
|
||||
# Disable host check during development
|
||||
config.hosts = nil
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue