feat: allow enabling all plugins into a channel
This commit is contained in:
parent
899ac49336
commit
3b09a9dd47
10 changed files with 915 additions and 17 deletions
|
@ -564,6 +564,13 @@ func (a *Admin) handleChannelDetail(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
// Update enable_all_plugins
|
||||
enableAllPlugins := r.FormValue("enable_all_plugins") == "true"
|
||||
if err := a.db.UpdateChannelEnableAllPlugins(id, enableAllPlugins); err != nil {
|
||||
http.Error(w, "Failed to update channel enable all plugins", http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
|
||||
a.addFlash(w, r, "Channel updated", "success")
|
||||
http.Redirect(w, r, "/admin/channels/"+channelID, http.StatusSeeOther)
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue