Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

Commit

Permalink
show all
Browse files Browse the repository at this point in the history
  • Loading branch information
risufaj committed Sep 18, 2018
1 parent 89df757 commit caec1c1
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion static/main-hub/app/view/libraries/Libraries.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,33 @@ Ext.define('MainHub.view.libraries.Libraries', {
layout: 'hbox',
margin: '0 20 0 0',
items: [
{
name : 'showAll',
boxLabel: 'Show all',
boxLabelAlign: 'before',
id : 'showAlllr',
margin: '0 15 0 0',
cls: 'grid-header-checkbox',
hidden: !USER.is_staff,
listeners:{
change: function(checkbox, newValue, oldValue, eOpts) {
if (newValue) {
Ext.getStore('librariesStore').getProxy().extraParams.showAll = 'True';
Ext.getStore('librariesStore').load()
} else {
Ext.getStore('librariesStore').getProxy().extraParams.showAll = 'False';
Ext.getStore('librariesStore').load()
}
}
}
},
{
boxLabel: 'Show Libraries',
itemId: 'showLibrariesCheckbox',
margin: '0 15 0 0',
cls: 'grid-header-checkbox',
checked: true,
hidden: true
hidden: true,
},
{
boxLabel: 'Show Samples',
Expand Down

0 comments on commit caec1c1

Please sign in to comment.