Skip to content
Snippets Groups Projects
Commit 05e8404b authored by Phil Hughes's avatar Phil Hughes
Browse files

Fixed issue with dragging opening the issue sidebar

Added indicator when issue detail is visible
parent 6b3e3aeb
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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;
Loading
Loading
@@ -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);
}
}
}
});
Loading
Loading
Loading
Loading
@@ -194,6 +194,10 @@ lex
margin-bottom: 5px;
}
 
&.is-active {
background-color: $row-hover;
}
.label {
border: 0;
outline: 0;
Loading
Loading
Loading
Loading
@@ -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",
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment