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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
522d53da
Commit
522d53da
authored
Aug 09, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added some JS improvements
parent
1cb9de1b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
8 deletions
+9
-8
app/assets/javascripts/boards/components/board.js.es6
app/assets/javascripts/boards/components/board.js.es6
+1
-1
app/assets/javascripts/boards/components/board_blank_state.js.es6
...ts/javascripts/boards/components/board_blank_state.js.es6
+1
-1
app/assets/javascripts/boards/components/board_card.js.es6
app/assets/javascripts/boards/components/board_card.js.es6
+1
-1
app/assets/javascripts/boards/components/board_delete.js.es6
app/assets/javascripts/boards/components/board_delete.js.es6
+1
-1
app/assets/javascripts/boards/components/board_list.js.es6
app/assets/javascripts/boards/components/board_list.js.es6
+5
-4
No files found.
app/assets/javascripts/boards/components/board.js.es6
View file @
522d53da
(
() =>
{
(
function ()
{
const Board = Vue.extend({
props: {
list: Object,
...
...
app/assets/javascripts/boards/components/board_blank_state.js.es6
View file @
522d53da
(
() =>
{
(
function ()
{
const BoardBlankState = Vue.extend({
methods: {
addDefaultLists: function () {
...
...
app/assets/javascripts/boards/components/board_card.js.es6
View file @
522d53da
(
() =>
{
(
function ()
{
const BoardCard = Vue.extend({
props: {
issue: Object,
...
...
app/assets/javascripts/boards/components/board_delete.js.es6
View file @
522d53da
...
...
@@ -5,7 +5,7 @@
},
methods: {
deleteBoard: function () {
$(this.$el).tooltip('
destroy
');
$(this.$el).tooltip('
hide
');
if (confirm('Are you sure you want to delete this list?')) {
this.list.destroy();
...
...
app/assets/javascripts/boards/components/board_list.js.es6
View file @
522d53da
(
() =>
{
(
function ()
{
const BoardList = Vue.extend({
props: {
disabled: Boolean,
...
...
@@ -50,12 +50,13 @@
group: 'issues',
disabled: this.disabled,
onAdd: (e) => {
const fromListId = parseInt(e.from.getAttribute('data-board')),
const card = e.item,
fromListId = parseInt(e.from.getAttribute('data-board')),
toListId = parseInt(e.to.getAttribute('data-board')),
issueId = parseInt(
e.item
.getAttribute('data-issue'));
issueId = parseInt(
card
.getAttribute('data-issue'));
// Remove the new dom element & let vue add the element
e.item.parentNode.removeChild(e.item
);
card.parentNode.removeChild(card
);
BoardsStore.moveCardToList(fromListId, toListId, issueId);
}
...
...
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