From 9b6a0674f71cdbfe510792d716b6b630fbb9f814 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Fri, 15 Nov 2019 14:33:32 -0800 Subject: [PATCH] Adding ability to disable attachment buttons and fields. (#12973) --- model/integration_action.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/model/integration_action.go b/model/integration_action.go index 64898e242b..177c416445 100644 --- a/model/integration_action.go +++ b/model/integration_action.go @@ -44,6 +44,9 @@ type PostAction struct { // The text on the button, or in the select placeholder. Name string `json:"name,omitempty"` + // If the action is disabled. + Disabled bool `json:"disabled,omitempty"` + // DataSource indicates the data source for the select action. If left // empty, the select is populated from Options. Other supported values // are "users" and "channels".