Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
00b835ba
Commit
00b835ba
authored
Jan 31, 2017
by
Phil Hughes
Committed by
Fatih Acet
Feb 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Props use objects with required & type values
parent
103c78f1
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
73 additions
and
23 deletions
+73
-23
app/assets/javascripts/boards/components/issue_card_inner.js.es6
...ets/javascripts/boards/components/issue_card_inner.js.es6
+18
-3
app/assets/javascripts/boards/components/modal/empty_state.js.es6
...ts/javascripts/boards/components/modal/empty_state.js.es6
+10
-3
app/assets/javascripts/boards/components/modal/footer.js.es6
app/assets/javascripts/boards/components/modal/footer.js.es6
+1
-1
app/assets/javascripts/boards/components/modal/header.js.es6
app/assets/javascripts/boards/components/modal/header.js.es6
+1
-1
app/assets/javascripts/boards/components/modal/index.js.es6
app/assets/javascripts/boards/components/modal/index.js.es6
+22
-8
app/assets/javascripts/boards/components/modal/list.js.es6
app/assets/javascripts/boards/components/modal/list.js.es6
+11
-4
app/assets/javascripts/boards/components/sidebar/remove_issue.js.es6
...javascripts/boards/components/sidebar/remove_issue.js.es6
+10
-3
No files found.
app/assets/javascripts/boards/components/issue_card_inner.js.es6
View file @
00b835ba
...
...
@@ -6,9 +6,24 @@
window.gl.issueBoards = window.gl.issueBoards || {};
gl.issueBoards.IssueCardInner = Vue.extend({
props: [
'issue', 'issueLinkBase', 'list', 'rootPath',
],
props: {
issue: {
type: Object,
required: true,
},
issueLinkBase: {
type: String,
required: true,
},
list: {
type: Object,
required: false,
},
rootPath: {
type: String,
required: true,
},
},
methods: {
showLabel(label) {
if (!this.list) return true;
...
...
app/assets/javascripts/boards/components/modal/empty_state.js.es6
View file @
00b835ba
...
...
@@ -6,9 +6,16 @@
data() {
return ModalStore.store;
},
props: [
'image', 'newIssuePath',
],
props: {
image: {
type: String,
required: true,
},
newIssuePath: {
type: String,
required: true,
},
},
computed: {
contents() {
const obj = {
...
...
app/assets/javascripts/boards/components/modal/footer.js.es6
View file @
00b835ba
...
...
@@ -41,7 +41,7 @@
},
},
components: {
listsDropdown
: gl.issueBoards.ModalFooterListsDropdown,
'lists-dropdown'
: gl.issueBoards.ModalFooterListsDropdown,
},
template: `
<footer
...
...
app/assets/javascripts/boards/components/modal/header.js.es6
View file @
00b835ba
...
...
@@ -24,7 +24,7 @@
},
},
components: {
modalTabs
: gl.issueBoards.ModalTabs,
'modal-tabs'
: gl.issueBoards.ModalTabs,
},
template: `
<div>
...
...
app/assets/javascripts/boards/components/modal/index.js.es6
View file @
00b835ba
...
...
@@ -8,10 +8,24 @@
const ModalStore = gl.issueBoards.ModalStore;
gl.issueBoards.IssuesModal = Vue.extend({
props: [
'blankStateImage', 'newIssuePath', 'issueLinkBase',
'rootPath',
],
props: {
blankStateImage: {
type: String,
required: true,
},
newIssuePath: {
type: String,
required: true,
},
issueLinkBase: {
type: String,
required: true,
},
rootPath: {
type: String,
required: true,
},
},
data() {
return ModalStore.store;
},
...
...
@@ -76,10 +90,10 @@
},
},
components: {
modalHeader
: gl.issueBoards.IssuesModalHeader,
modalList
: gl.issueBoards.ModalList,
modalFooter
: gl.issueBoards.ModalFooter,
emptyState
: gl.issueBoards.ModalEmptyState,
'modal-header'
: gl.issueBoards.IssuesModalHeader,
'modal-list'
: gl.issueBoards.ModalList,
'modal-footer'
: gl.issueBoards.ModalFooter,
'empty-state'
: gl.issueBoards.ModalEmptyState,
},
template: `
<div
...
...
app/assets/javascripts/boards/components/modal/list.js.es6
View file @
00b835ba
...
...
@@ -6,9 +6,16 @@
const ModalStore = gl.issueBoards.ModalStore;
gl.issueBoards.ModalList = Vue.extend({
props: [
'issueLinkBase', 'rootPath',
],
props: {
issueLinkBase: {
type: String,
required: true,
},
rootPath: {
type: String,
required: true,
},
},
data() {
return ModalStore.store;
},
...
...
@@ -94,7 +101,7 @@
this.destroyMasonry();
},
components: {
issueCardInner
: gl.issueBoards.IssueCardInner,
'issue-card-inner'
: gl.issueBoards.IssueCardInner,
},
template: `
<section
...
...
app/assets/javascripts/boards/components/sidebar/remove_issue.js.es6
View file @
00b835ba
...
...
@@ -6,9 +6,16 @@
window.gl.issueBoards = window.gl.issueBoards || {};
gl.issueBoards.RemoveIssueBtn = Vue.extend({
props: [
'issue', 'list',
],
props: {
issue: {
type: Object,
required: true,
},
list: {
type: Object,
required: true,
},
},
methods: {
removeIssue() {
const lists = this.issue.getLists();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment