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
Jérome Perrin
gitlab-ce
Commits
05e8404b
Commit
05e8404b
authored
Oct 05, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed issue with dragging opening the issue sidebar
Added indicator when issue detail is visible
parent
6b3e3aeb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
3 deletions
+35
-3
app/assets/javascripts/boards/components/board_card.js.es6
app/assets/javascripts/boards/components/board_card.js.es6
+27
-1
app/assets/stylesheets/pages/boards.scss
app/assets/stylesheets/pages/boards.scss
+4
-0
app/views/projects/boards/components/_card.html.haml
app/views/projects/boards/components/_card.html.haml
+4
-2
No files found.
app/assets/javascripts/boards/components/board_card.js.es6
View file @
05e8404b
...
...
@@ -12,6 +12,21 @@
disabled: Boolean,
index: Number
},
data () {
return {
showDetail: false,
detailIssue: Store.detail
};
},
computed: {
issueDetailVisible () {
if (this.detailIssue.issue && this.detailIssue.issue.id === this.issue.id) {
return true;
} else {
return false;
}
}
},
methods: {
filterByLabel (label, e) {
let labelToggleText = label.title;
...
...
@@ -38,8 +53,19 @@
Store.updateFiltersUrl();
},
mouseDown () {
this.showDetail = true;
},
mouseMove () {
if (this.showDetail) {
this.showDetail = false;
}
},
showIssue () {
Store.detail.issue = this.issue;
if (this.showDetail) {
this.showDetail = false;
Vue.set(Store.detail, 'issue', this.issue);
}
}
}
});
...
...
app/assets/stylesheets/pages/boards.scss
View file @
05e8404b
...
...
@@ -194,6 +194,10 @@ lex
margin-bottom
:
5px
;
}
&
.is-active
{
background-color
:
$row-hover
;
}
.label
{
border
:
0
;
outline
:
0
;
...
...
app/views/projects/boards/components/_card.html.haml
View file @
05e8404b
...
...
@@ -7,9 +7,11 @@
":issue-link-base"
=>
"issueLinkBase"
,
":disabled"
=>
"disabled"
,
"track-by"
=>
"id"
}
%li
.card
{
":class"
=>
"{ 'user-can-drag': !disabled && issue.id, 'is-disabled': disabled || !issue.id }"
,
%li
.card
{
":class"
=>
"{ 'user-can-drag': !disabled && issue.id, 'is-disabled': disabled || !issue.id
, 'is-active': issueDetailVisible
}"
,
":index"
=>
"index"
,
"@click"
=>
"showIssue"
}
"@mousedown"
=>
"mouseDown"
,
"@mouseMove"
=>
"mouseMove"
,
"@mouseup"
=>
"showIssue"
}
%h4
.card-title
=
icon
(
"eye-slash"
,
class:
"confidential-icon"
,
"v-if"
=>
"issue.confidential"
)
%a
{
":href"
=>
"issueLinkBase + '/' + issue.id"
,
...
...
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