diff options
Diffstat (limited to 'app/graphql/mutations/labels/create.rb')
-rw-r--r-- | app/graphql/mutations/labels/create.rb | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/app/graphql/mutations/labels/create.rb b/app/graphql/mutations/labels/create.rb index ccbd1c37cbf..4da628d53ea 100644 --- a/app/graphql/mutations/labels/create.rb +++ b/app/graphql/mutations/labels/create.rb @@ -20,10 +20,21 @@ module Mutations required: false, description: 'Description of the label.' + argument :remove_on_close, GraphQL::BOOLEAN_TYPE, + required: false, + description: copy_field_description(Types::LabelType, :remove_on_close) + argument :color, GraphQL::STRING_TYPE, required: false, default_value: Label::DEFAULT_COLOR, - description: "The color of the label given in 6-digit hex notation with leading '#' sign (e.g. #FFAABB) or one of the CSS color names in https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#Color_keywords." + see: { + 'List of color keywords at mozilla.org' => + 'https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#Color_keywords' + }, + description: <<~DESC + The color of the label given in 6-digit hex notation with leading '#' sign + (for example, `#FFAABB`) or one of the CSS color names. + DESC authorize :admin_label |