New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor toolbar into v-authorship tab #566
Conversation
@apoorva17 could you check if there is any test case i missed? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
frontend/src/static/js/main.js
Outdated
@@ -99,10 +99,11 @@ window.app = new window.Vue({ | |||
|
|||
isLoading: false, | |||
isCollapsed: false, | |||
|
|||
// isTabActive used to force tab wrapper to load | |||
isTabActive: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps inline the comments? E.g. isTabActive: true, // to force tab wrapper to load
}, | ||
|
||
updateCount() { | ||
this.activeFileCount = document.getElementsByClassName('file active').length; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
activeFiles
Count
frontend/src/index.jade
Outdated
@@ -37,17 +37,14 @@ html | |||
|
|||
#tabs-wrapper(v-if="isTabActive") | |||
#tab-resize(onmousedown="registerMouseMove()") | |||
.tab-close(v-on:click="isTabActive=false") | |||
.tab-close(v-on:click="isTabActive=false;") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this change doesn't seems to match the purpose of this PR
frontend/src/index.jade
Outdated
v-bind:key="generateKey(tabInfo.tabAuthorship)", | ||
v-bind:info="tabInfo.tabAuthorship") | ||
v_authorship#tab-authorship.tab-pane( | ||
v-if="tabType=='authorship'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
space around operator, also, why not follow existing style to use ===
?
frontend/src/index.jade
Outdated
@@ -166,6 +163,10 @@ html | |||
|
|||
vuetemplate#v_authorship | |||
#authorship | |||
// TODO: remove in #524 | |||
.toolbar(v-if="info.totalCommits > 0") | |||
a(v-if="activeFileCount===0", v-on:click="expandAll(true)") Expand all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
space around operator ===
@yamidark Merge? |
frontend/src/index.jade
Outdated
@@ -199,6 +196,10 @@ html | |||
|
|||
vuetemplate#v_authorship | |||
#authorship | |||
// TODO: remove in #524 | |||
.toolbar(v-if="info.totalCommits > 0") | |||
a(v-if="activeFileCount === 0", v-on:click="expandAll(true)") Expand all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sha? let me merge again
…On Wed, 13 Mar 2019 at 00:59, Jun An ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In frontend/src/index.jade
<#566 (comment)>:
> @@ -199,6 +196,10 @@ html
vuetemplate#v_authorship
#authorship
+ // TODO: remove in #524
+ .toolbar(v-if="info.totalCommits > 0")
+ a(v-if="activeFileCount === 0", v-on:click="expandAll(true)") Expand all
[image: Untitled]
<https://user-images.githubusercontent.com/18352498/54219855-2e0c9e80-452b-11e9-99d3-469577c6fa26.png>
Seems like this activeFileCount variable hasn't been refactored to latest
master?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#566 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABXVRuZ1Pr3dGdiF6Hj6O8eFDBJat0y2ks5vV9zrgaJpZM4bGxUz>
.
|
might affect #524 and #544