1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 07:39:43 +02:00

Restrict pin sequence changing

Only all documents filter enables the up/down pin sequence change clickers.
This commit is contained in:
sauls8t 2020-02-04 12:37:59 +00:00
parent d1774b42bd
commit c689379f92
3 changed files with 5 additions and 4 deletions

View file

@ -31,8 +31,8 @@ export default Component.extend({
hasDocumentActions: computed('permissions.{documentDelete,documentMove}', function() {
return this.get('permissions.documentDelete') || this.get('permissions.documentMove');
}),
hasCategoryFilter: computed('categoryFilter', function() {
return !_.isEmpty(this.get('categoryFilter'));
showingAllDocs: computed('categoryFilter', 'numDocuments', 'documents', function() {
return _.isEmpty(this.get('categoryFilter')) && this.get('documents').length == this.get("numDocuments");
}),
didReceiveAttrs() {