Commit 7a68262d authored by Phil Hughes's avatar Phil Hughes

Tests update

parent 82481a6a
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) => {
......
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();
}); });
This diff is collapsed.
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