Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
703924c0
Commit
703924c0
authored
Apr 17, 2019
by
Hannah Stepanek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move selected tabs logic to a function
parent
b417a3c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
sidebar-content.js
src/sidebar/components/sidebar-content.js
+11
-0
sidebar-content.html
src/sidebar/templates/sidebar-content.html
+1
-1
No files found.
src/sidebar/components/sidebar-content.js
View file @
703924c0
...
@@ -285,6 +285,17 @@ function SidebarContentController(
...
@@ -285,6 +285,17 @@ function SidebarContentController(
true
true
);
);
this
.
showSelectedTabs
=
function
()
{
if
(
this
.
selectedAnnotationUnavailable
()
||
this
.
selectedGroupUnavailable
()
||
this
.
search
.
query
()
)
{
return
false
;
}
return
true
;
};
this
.
setCollapsed
=
function
(
id
,
collapsed
)
{
this
.
setCollapsed
=
function
(
id
,
collapsed
)
{
store
.
setCollapsed
(
id
,
collapsed
);
store
.
setCollapsed
(
id
,
collapsed
);
};
};
...
...
src/sidebar/templates/sidebar-content.html
View file @
703924c0
<selection-tabs
<selection-tabs
ng-if=
"
!vm.search.query() && vm.annotationsAreSelected
()"
ng-if=
"
vm.showSelectedTabs
()"
is-waiting-to-anchor-annotations=
"vm.waitingToAnchorAnnotations"
is-waiting-to-anchor-annotations=
"vm.waitingToAnchorAnnotations"
is-loading=
"vm.isLoading"
is-loading=
"vm.isLoading"
selected-tab=
"vm.selectedTab"
selected-tab=
"vm.selectedTab"
...
...
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