Commit 8fb7f319 authored by Simon Knox's avatar Simon Knox

projectId and groupId props as Numbers

parent 66d449c2
...@@ -24,9 +24,9 @@ export default { ...@@ -24,9 +24,9 @@ export default {
required: true, required: true,
}, },
groupId: { groupId: {
type: String, type: Number,
required: false, required: false,
default: '', default: 0,
}, },
label: { label: {
type: String, type: String,
...@@ -38,9 +38,9 @@ export default { ...@@ -38,9 +38,9 @@ export default {
default: 'Select user', default: 'Select user',
}, },
projectId: { projectId: {
type: String, type: Number,
required: false, required: false,
default: '', default: 0,
}, },
selected: { selected: {
type: Object, type: Object,
......
...@@ -42,14 +42,14 @@ export default { ...@@ -42,14 +42,14 @@ export default {
default: false, default: false,
}, },
projectId: { projectId: {
type: String, type: Number,
required: false, required: false,
default: '', default: 0,
}, },
groupId: { groupId: {
type: String, type: Number,
required: false, required: false,
default: '', default: 0,
}, },
weights: { weights: {
type: String, type: String,
......
...@@ -38,8 +38,8 @@ ...@@ -38,8 +38,8 @@
%board-form{ ":milestone-path" => "milestonePath", %board-form{ ":milestone-path" => "milestonePath",
"labels-path" => labels_filter_path(true), "labels-path" => labels_filter_path(true),
"project-id" => @project&.id, ":project-id" => "Number(#{@project&.id})",
"group-id" => @group&.id, ":group-id" => "Number(#{@group&.id})",
":can-admin-board" => can?(current_user, :admin_board, parent), ":can-admin-board" => can?(current_user, :admin_board, parent),
":scoped-issue-board-feature-enabled" => parent.feature_available?(:scoped_issue_board), ":scoped-issue-board-feature-enabled" => parent.feature_available?(:scoped_issue_board),
"weights" => [Issue::WEIGHT_ANY] + Issue.weight_options, "weights" => [Issue::WEIGHT_ANY] + Issue.weight_options,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment