Commit 39c7a270 authored by Phil Hughes's avatar Phil Hughes

Fixed JS lint errors

parent e5396b8e
......@@ -17,7 +17,7 @@
"spyOn": false,
"spyOnEvent": false,
"Turbolinks": false,
"window": false
"window": false,
"Vue": false
}
}
/* eslint-disable */
(function() {
var slice = [].slice;
......
/* eslint-disable */
(global => {
global.gl = global.gl || {};
......
/* eslint-disable */
(function() {
$(function() {
$(".approver-list").on("click", ".unsaved-approvers.approver .btn-remove", function(ev) {
......
......@@ -7,32 +7,32 @@
type: String,
currentBoard: Object,
currentPage: String,
reload: Boolean
reload: Boolean,
},
data () {
data() {
return {
board: {
id: false,
name: ''
}
name: '',
},
};
},
ready () {
ready() {
if (this.currentBoard && Object.keys(this.currentBoard).length) {
this.board = Vue.util.extend({}, this.currentBoard);
}
},
computed: {
buttonText () {
buttonText() {
if (this.type === 'new') {
return 'Create';
} else {
return 'Save';
}
}
return 'Save';
},
},
methods: {
submit () {
submit() {
gl.boardService.createBoard(this.board)
.then(() => {
if (this.currentBoard) {
......@@ -46,7 +46,7 @@
this.currentPage = '';
this.reload = true;
});
}
}
},
},
});
})();
......@@ -6,23 +6,23 @@
gl.issueBoards.BoardsSelector = Vue.extend({
components: {
'board-selector-form': gl.issueBoards.BoardSelectorForm
'board-selector-form': gl.issueBoards.BoardSelectorForm,
},
props: {
currentBoard: Object,
endpoint: String
endpoint: String,
},
data () {
data() {
return {
open: false,
loading: true,
boards: [],
currentPage: '',
reload: false
reload: false,
};
},
watch: {
reload () {
reload() {
if (this.reload) {
this.boards = [];
this.loading = true;
......@@ -30,32 +30,32 @@
this.loadBoards(false);
}
}
},
},
computed: {
showDelete () {
showDelete() {
return this.boards.length > 1;
},
title () {
title() {
if (this.currentPage === 'edit') {
return 'Edit board';
} else if (this.currentPage === 'new') {
return 'Create new board';
} else if (this.currentPage === 'delete') {
return 'Delete board';
} else {
return 'Go to a board';
}
}
return 'Go to a board';
},
},
methods: {
showPage (page) {
showPage(page) {
this.currentPage = page;
},
toggleDropdown () {
toggleDropdown() {
this.open = !this.open;
},
loadBoards (toggleDropdown = true) {
loadBoards(toggleDropdown = true) {
if (toggleDropdown) {
this.toggleDropdown();
}
......@@ -66,7 +66,7 @@
this.boards = resp.json();
});
}
}
}
},
},
});
})();
/* eslint-disable */
(function() {
$(function() {
var groupFormatSelection, ldapGroupResult;
......
/* eslint-disable */
(function() {
this.PathLocks = (function() {
function PathLocks() {}
......
/* eslint-disable */
(function() {
this.WeightSelect = (function() {
function WeightSelect() {
......
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