Commit a0650619 authored by Valery Sizov's avatar Valery Sizov

Merge branch 'ce_upstream' of gitlab.com:gitlab-org/gitlab-ee into ce_upstream

parents b50d5198 39c7a270
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"spyOn": false, "spyOn": false,
"spyOnEvent": false, "spyOnEvent": false,
"Turbolinks": false, "Turbolinks": false,
"window": false "window": false,
"Vue": false
} }
} }
/* eslint-disable */
(function() { (function() {
var slice = [].slice; var slice = [].slice;
......
/* eslint-disable */
(global => { (global => {
global.gl = global.gl || {}; global.gl = global.gl || {};
......
/* eslint-disable */
(function() { (function() {
$(function() { $(function() {
$(".approver-list").on("click", ".unsaved-approvers.approver .btn-remove", function(ev) { $(".approver-list").on("click", ".unsaved-approvers.approver .btn-remove", function(ev) {
......
...@@ -7,32 +7,32 @@ ...@@ -7,32 +7,32 @@
type: String, type: String,
currentBoard: Object, currentBoard: Object,
currentPage: String, currentPage: String,
reload: Boolean reload: Boolean,
}, },
data () { data() {
return { return {
board: { board: {
id: false, id: false,
name: '' name: '',
} },
}; };
}, },
ready () { ready() {
if (this.currentBoard && Object.keys(this.currentBoard).length) { if (this.currentBoard && Object.keys(this.currentBoard).length) {
this.board = Vue.util.extend({}, this.currentBoard); this.board = Vue.util.extend({}, this.currentBoard);
} }
}, },
computed: { computed: {
buttonText () { buttonText() {
if (this.type === 'new') { if (this.type === 'new') {
return 'Create'; return 'Create';
} else {
return 'Save';
} }
}
return 'Save';
},
}, },
methods: { methods: {
submit () { submit() {
gl.boardService.createBoard(this.board) gl.boardService.createBoard(this.board)
.then(() => { .then(() => {
if (this.currentBoard) { if (this.currentBoard) {
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
this.currentPage = ''; this.currentPage = '';
this.reload = true; this.reload = true;
}); });
} },
} },
}); });
})(); })();
...@@ -6,23 +6,23 @@ ...@@ -6,23 +6,23 @@
gl.issueBoards.BoardsSelector = Vue.extend({ gl.issueBoards.BoardsSelector = Vue.extend({
components: { components: {
'board-selector-form': gl.issueBoards.BoardSelectorForm 'board-selector-form': gl.issueBoards.BoardSelectorForm,
}, },
props: { props: {
currentBoard: Object, currentBoard: Object,
endpoint: String endpoint: String,
}, },
data () { data() {
return { return {
open: false, open: false,
loading: true, loading: true,
boards: [], boards: [],
currentPage: '', currentPage: '',
reload: false reload: false,
}; };
}, },
watch: { watch: {
reload () { reload() {
if (this.reload) { if (this.reload) {
this.boards = []; this.boards = [];
this.loading = true; this.loading = true;
...@@ -30,32 +30,32 @@ ...@@ -30,32 +30,32 @@
this.loadBoards(false); this.loadBoards(false);
} }
} },
}, },
computed: { computed: {
showDelete () { showDelete() {
return this.boards.length > 1; return this.boards.length > 1;
}, },
title () { title() {
if (this.currentPage === 'edit') { if (this.currentPage === 'edit') {
return 'Edit board'; return 'Edit board';
} else if (this.currentPage === 'new') { } else if (this.currentPage === 'new') {
return 'Create new board'; return 'Create new board';
} else if (this.currentPage === 'delete') { } else if (this.currentPage === 'delete') {
return 'Delete board'; return 'Delete board';
} else {
return 'Go to a board';
} }
}
return 'Go to a board';
},
}, },
methods: { methods: {
showPage (page) { showPage(page) {
this.currentPage = page; this.currentPage = page;
}, },
toggleDropdown () { toggleDropdown() {
this.open = !this.open; this.open = !this.open;
}, },
loadBoards (toggleDropdown = true) { loadBoards(toggleDropdown = true) {
if (toggleDropdown) { if (toggleDropdown) {
this.toggleDropdown(); this.toggleDropdown();
} }
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
this.boards = resp.json(); this.boards = resp.json();
}); });
} }
} },
} },
}); });
})(); })();
/* eslint-disable */
(function() { (function() {
$(function() { $(function() {
var groupFormatSelection, ldapGroupResult; var groupFormatSelection, ldapGroupResult;
......
/* eslint-disable */
(function() { (function() {
this.PathLocks = (function() { this.PathLocks = (function() {
function PathLocks() {} function PathLocks() {}
......
/* eslint-disable */
(function() { (function() {
this.WeightSelect = (function() { this.WeightSelect = (function() {
function WeightSelect() { function WeightSelect() {
......
...@@ -10,18 +10,10 @@ ...@@ -10,18 +10,10 @@
= render 'shared/issuable/filter', type: :boards = render 'shared/issuable/filter', type: :boards
<<<<<<< HEAD
#board-app{ "v-cloak" => true, data: board_data }
= render "title", board: @boards.first
.boards-app-loading.text-center{ "v-if" => "loading" }
= icon("spinner spin")
.boards-list
= render "projects/boards/components/board"
=======
#board-app.boards-app{ "v-cloak" => true, data: board_data } #board-app.boards-app{ "v-cloak" => true, data: board_data }
= render "title", board: @boards.first
.boards-list{ ":class" => "{ 'is-compact': detailIssueVisible }" } .boards-list{ ":class" => "{ 'is-compact': detailIssueVisible }" }
.boards-app-loading.text-center{ "v-if" => "loading" } .boards-app-loading.text-center{ "v-if" => "loading" }
= icon("spinner spin") = icon("spinner spin")
= render "projects/boards/components/board" = render "projects/boards/components/board"
= render "projects/boards/components/sidebar" = render "projects/boards/components/sidebar"
>>>>>>> 144358e98ee1b25b61854a3471e21e100ace9db5
...@@ -10,18 +10,10 @@ ...@@ -10,18 +10,10 @@
= render 'shared/issuable/filter', type: :boards = render 'shared/issuable/filter', type: :boards
<<<<<<< HEAD
#board-app{ "v-cloak" => true, data: board_data }
= render "title", board: @board
.boards-app-loading.text-center{ "v-if" => "loading" }
= icon("spinner spin")
.boards-list
= render "projects/boards/components/board"
=======
#board-app.boards-app{ "v-cloak" => true, data: board_data } #board-app.boards-app{ "v-cloak" => true, data: board_data }
= render "title", board: @board
.boards-list{ ":class" => "{ 'is-compact': detailIssueVisible }" } .boards-list{ ":class" => "{ 'is-compact': detailIssueVisible }" }
.boards-app-loading.text-center{ "v-if" => "loading" } .boards-app-loading.text-center{ "v-if" => "loading" }
= icon("spinner spin") = icon("spinner spin")
= render "projects/boards/components/board" = render "projects/boards/components/board"
= render "projects/boards/components/sidebar" = render "projects/boards/components/sidebar"
>>>>>>> 144358e98ee1b25b61854a3471e21e100ace9db5
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