diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2019-03-29 12:00:17 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2019-03-29 12:00:17 +0300 |
commit | a241b5e3d0e3bc41ee822b456a196442a576bd67 (patch) | |
tree | 7280a6c8c61748f3723c0d2d9b4287f296044cad | |
parent | 9b812763283ba5272d46ef7afc760edd7fd2ada3 (diff) | |
parent | 9bb41e894eda61c2944563da7d7c90f7ff303be0 (diff) |
Merge branch '10085-resovle-ee-diff' into 'master'
Adds EE validators to CE file
See merge request gitlab-org/gitlab-ce!26736
-rw-r--r-- | app/assets/javascripts/vue_shared/components/svg_gradient.vue | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/assets/javascripts/vue_shared/components/svg_gradient.vue b/app/assets/javascripts/vue_shared/components/svg_gradient.vue index cca90af275e..5ce45d492f9 100644 --- a/app/assets/javascripts/vue_shared/components/svg_gradient.vue +++ b/app/assets/javascripts/vue_shared/components/svg_gradient.vue @@ -4,10 +4,16 @@ export default { colors: { type: Array, required: true, + validator(value) { + return value.length === 2; + }, }, opacity: { type: Array, required: true, + validator(value) { + return value.length === 2; + }, }, identifierName: { type: String, |