mirror of
https://github.com/lingble/chatwoot.git
synced 2025-12-14 17:57:09 +00:00
chore: delete github hook
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
class Api::V1::Accounts::Integrations::GithubController < Api::V1::Accounts::BaseController
|
||||||
|
before_action :fetch_hook, only: [:destroy]
|
||||||
|
|
||||||
|
def destroy
|
||||||
|
@hook.destroy!
|
||||||
|
head :ok
|
||||||
|
end
|
||||||
|
|
||||||
|
def fetch_hook
|
||||||
|
@hook = Integrations::Hook.where(account: Current.account).find_by(app_id: 'github')
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -21,7 +21,13 @@
|
|||||||
"PLACEHOLDER": "Enter your Github Client ID",
|
"PLACEHOLDER": "Enter your Github Client ID",
|
||||||
"HELP": "Enter your Github Client ID",
|
"HELP": "Enter your Github Client ID",
|
||||||
"CANCEL": "Cancel",
|
"CANCEL": "Cancel",
|
||||||
"SUBMIT": "Connect"
|
"SUBMIT": "Connect",
|
||||||
|
"DELETE": {
|
||||||
|
"TITLE": "Are you sure you want to delete the integration?",
|
||||||
|
"MESSAGE": "Are you sure you want to delete the integration?",
|
||||||
|
"CONFIRM": "Yes, delete",
|
||||||
|
"CANCEL": "Cancel"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"HEADER": "Integrations",
|
"HEADER": "Integrations",
|
||||||
"DESCRIPTION": "Chatwoot integrates with multiple tools and services to improve your team's efficiency. Explore the list below to configure your favorite apps.",
|
"DESCRIPTION": "Chatwoot integrates with multiple tools and services to improve your team's efficiency. Explore the list below to configure your favorite apps.",
|
||||||
@@ -329,6 +335,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"CAPTAIN": {
|
"CAPTAIN": {
|
||||||
"NAME": "Captain",
|
"NAME": "Captain",
|
||||||
"HEADER_KNOW_MORE": "Know more",
|
"HEADER_KNOW_MORE": "Know more",
|
||||||
|
|||||||
@@ -258,6 +258,11 @@ Rails.application.routes.draw do
|
|||||||
get :linked_issues
|
get :linked_issues
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
resource :github, controller: 'github', only: [] do
|
||||||
|
collection do
|
||||||
|
delete :destroy
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
resources :working_hours, only: [:update]
|
resources :working_hours, only: [:update]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user