diff options
Diffstat (limited to 'app/models/integrations/mattermost_slash_commands.rb')
-rw-r--r-- | app/models/integrations/mattermost_slash_commands.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/models/integrations/mattermost_slash_commands.rb b/app/models/integrations/mattermost_slash_commands.rb index 62fe4820e55..f5079b9b907 100644 --- a/app/models/integrations/mattermost_slash_commands.rb +++ b/app/models/integrations/mattermost_slash_commands.rb @@ -4,7 +4,11 @@ module Integrations class MattermostSlashCommands < BaseSlashCommands include Ci::TriggersHelper - prop_accessor :token + field :token, + type: 'password', + non_empty_password_title: -> { s_('ProjectService|Enter new token') }, + non_empty_password_help: -> { s_('ProjectService|Leave blank to use your current token.') }, + placeholder: '' def testable? false |