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
7a68262d
Commit
7a68262d
authored
Aug 16, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests update
parent
82481a6a
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
93 additions
and
63 deletions
+93
-63
app/assets/javascripts/boards/models/list.js.es6
app/assets/javascripts/boards/models/list.js.es6
+8
-1
app/assets/javascripts/boards/vue_resource_interceptor.js.es6
...assets/javascripts/boards/vue_resource_interceptor.js.es6
+4
-5
spec/features/boards/boards_spec.rb
spec/features/boards/boards_spec.rb
+81
-57
No files found.
app/assets/javascripts/boards/models/list.js.es6
View file @
7a68262d
class List {
class List {
constructor (obj) {
constructor (obj) {
this.id = obj.id;
this.id = obj.id;
this._uid =
Math.ceil(Math.random() * 1000
);
this._uid =
this.guid(
);
this.position = obj.position;
this.position = obj.position;
this.title = obj.title;
this.title = obj.title;
this.type = obj.list_type;
this.type = obj.list_type;
...
@@ -20,6 +20,13 @@ class List {
...
@@ -20,6 +20,13 @@ class List {
}
}
}
}
guid() {
const s4 = () => {
return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);
}
return `${s4()}${s4()}-${s4()}-${s4()}-${s4()}-${s4()}${s4()}${s4()}`;
}
save () {
save () {
return gl.boardService.createList(this.label.id)
return gl.boardService.createList(this.label.id)
.then((resp) => {
.then((resp) => {
...
...
app/assets/javascripts/boards/vue_resource_interceptor.js.es6
View file @
7a68262d
Vue.activeResources = 0;
Vue.http.interceptors.push((request, next) => {
Vue.http.interceptors.push((request, next) => {
Vue.activeResources
++
;
Vue.activeResources
= Vue.activeResources ? Vue.activeResources + 1 : 1
;
next((response
) => {
setTimeout((
) => {
Vue.activeResources--;
Vue.activeResources--;
});
}, 500);
next();
});
});
spec/features/boards/boards_spec.rb
View file @
7a68262d
This diff is collapsed.
Click to expand it.
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