BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
73 additions
and
23 deletions
+73
-23
issue_card_inner.js.es6
...ets/javascripts/boards/components/issue_card_inner.js.es6
+18
-3
empty_state.js.es6
...ts/javascripts/boards/components/modal/empty_state.js.es6
+10
-3
footer.js.es6
app/assets/javascripts/boards/components/modal/footer.js.es6
+1
-1
header.js.es6
app/assets/javascripts/boards/components/modal/header.js.es6
+1
-1
index.js.es6
app/assets/javascripts/boards/components/modal/index.js.es6
+22
-8
list.js.es6
app/assets/javascripts/boards/components/modal/list.js.es6
+11
-4
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 @@
...
@@ -6,9 +6,24 @@
window.gl.issueBoards = window.gl.issueBoards || {};
window.gl.issueBoards = window.gl.issueBoards || {};
gl.issueBoards.IssueCardInner = Vue.extend({
gl.issueBoards.IssueCardInner = Vue.extend({
props: [
props: {
'issue', 'issueLinkBase', 'list', 'rootPath',
issue: {
],
type: Object,
required: true,
},
issueLinkBase: {
type: String,
required: true,
},
list: {
type: Object,
required: false,
},
rootPath: {
type: String,
required: true,
},
},
methods: {
methods: {
showLabel(label) {
showLabel(label) {
if (!this.list) return true;
if (!this.list) return true;
...
...
app/assets/javascripts/boards/components/modal/empty_state.js.es6
View file @
00b835ba
...
@@ -6,9 +6,16 @@
...
@@ -6,9 +6,16 @@
data() {
data() {
return ModalStore.store;
return ModalStore.store;
},
},
props: [
props: {
'image', 'newIssuePath',
image: {
],
type: String,
required: true,
},
newIssuePath: {
type: String,
required: true,
},
},
computed: {
computed: {
contents() {
contents() {
const obj = {
const obj = {
...
...
app/assets/javascripts/boards/components/modal/footer.js.es6
View file @
00b835ba
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
},
},
},
},
components: {
components: {
listsDropdown
: gl.issueBoards.ModalFooterListsDropdown,
'lists-dropdown'
: gl.issueBoards.ModalFooterListsDropdown,
},
},
template: `
template: `
<footer
<footer
...
...
app/assets/javascripts/boards/components/modal/header.js.es6
View file @
00b835ba
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
},
},
},
},
components: {
components: {
modalTabs
: gl.issueBoards.ModalTabs,
'modal-tabs'
: gl.issueBoards.ModalTabs,
},
},
template: `
template: `
<div>
<div>
...
...
app/assets/javascripts/boards/components/modal/index.js.es6
View file @
00b835ba
...
@@ -8,10 +8,24 @@
...
@@ -8,10 +8,24 @@
const ModalStore = gl.issueBoards.ModalStore;
const ModalStore = gl.issueBoards.ModalStore;
gl.issueBoards.IssuesModal = Vue.extend({
gl.issueBoards.IssuesModal = Vue.extend({
props: [
props: {
'blankStateImage', 'newIssuePath', 'issueLinkBase',
blankStateImage: {
'rootPath',
type: String,
],
required: true,
},
newIssuePath: {
type: String,
required: true,
},
issueLinkBase: {
type: String,
required: true,
},
rootPath: {
type: String,
required: true,
},
},
data() {
data() {
return ModalStore.store;
return ModalStore.store;
},
},
...
@@ -76,10 +90,10 @@
...
@@ -76,10 +90,10 @@
},
},
},
},
components: {
components: {
modalHeader
: gl.issueBoards.IssuesModalHeader,
'modal-header'
: gl.issueBoards.IssuesModalHeader,
modalList
: gl.issueBoards.ModalList,
'modal-list'
: gl.issueBoards.ModalList,
modalFooter
: gl.issueBoards.ModalFooter,
'modal-footer'
: gl.issueBoards.ModalFooter,
emptyState
: gl.issueBoards.ModalEmptyState,
'empty-state'
: gl.issueBoards.ModalEmptyState,
},
},
template: `
template: `
<div
<div
...
...
app/assets/javascripts/boards/components/modal/list.js.es6
View file @
00b835ba
...
@@ -6,9 +6,16 @@
...
@@ -6,9 +6,16 @@
const ModalStore = gl.issueBoards.ModalStore;
const ModalStore = gl.issueBoards.ModalStore;
gl.issueBoards.ModalList = Vue.extend({
gl.issueBoards.ModalList = Vue.extend({
props: [
props: {
'issueLinkBase', 'rootPath',
issueLinkBase: {
],
type: String,
required: true,
},
rootPath: {
type: String,
required: true,
},
},
data() {
data() {
return ModalStore.store;
return ModalStore.store;
},
},
...
@@ -94,7 +101,7 @@
...
@@ -94,7 +101,7 @@
this.destroyMasonry();
this.destroyMasonry();
},
},
components: {
components: {
issueCardInner
: gl.issueBoards.IssueCardInner,
'issue-card-inner'
: gl.issueBoards.IssueCardInner,
},
},
template: `
template: `
<section
<section
...
...
app/assets/javascripts/boards/components/sidebar/remove_issue.js.es6
View file @
00b835ba
...
@@ -6,9 +6,16 @@
...
@@ -6,9 +6,16 @@
window.gl.issueBoards = window.gl.issueBoards || {};
window.gl.issueBoards = window.gl.issueBoards || {};
gl.issueBoards.RemoveIssueBtn = Vue.extend({
gl.issueBoards.RemoveIssueBtn = Vue.extend({
props: [
props: {
'issue', 'list',
issue: {
],
type: Object,
required: true,
},
list: {
type: Object,
required: true,
},
},
methods: {
methods: {
removeIssue() {
removeIssue() {
const lists = this.issue.getLists();
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