mirror of
https://github.com/documize/community.git
synced 2025-08-04 21:15:24 +02:00
upgraded Ember and Bootstrap, merged changes
This commit is contained in:
parent
b4fd42da38
commit
5dd7d9c181
114 changed files with 9814 additions and 1361 deletions
|
@ -9,6 +9,7 @@
|
|||
//
|
||||
// https://documize.com
|
||||
|
||||
import $ from 'jquery';
|
||||
import Component from '@ember/component';
|
||||
import { inject as service } from '@ember/service';
|
||||
import TooltipMixin from '../../mixins/tooltip';
|
||||
|
@ -22,7 +23,11 @@ export default Component.extend(ModalMixin, TooltipMixin, {
|
|||
newCategory: '',
|
||||
deleteId: '',
|
||||
dropdown: null,
|
||||
users: [],
|
||||
|
||||
init() {
|
||||
this._super(...arguments);
|
||||
this.users = [];
|
||||
},
|
||||
|
||||
didReceiveAttrs() {
|
||||
this._super(...arguments);
|
||||
|
|
|
@ -12,9 +12,6 @@
|
|||
import Component from '@ember/component';
|
||||
|
||||
export default Component.extend({
|
||||
documentTags: [],
|
||||
tagz: [],
|
||||
|
||||
init() {
|
||||
this._super(...arguments);
|
||||
let tagz = [];
|
||||
|
|
|
@ -48,7 +48,8 @@ export default Component.extend({
|
|||
this.set('selectedDocuments', A([]));
|
||||
this.set('showDeleteDialog', false);
|
||||
|
||||
this.attrs.onDeleteDocument(list);
|
||||
let cb = this.get('onDeleteDocument');
|
||||
cb(list);
|
||||
|
||||
return true;
|
||||
},
|
||||
|
@ -72,7 +73,9 @@ export default Component.extend({
|
|||
|
||||
this.set('showMoveDialog', false);
|
||||
this.set('selectedDocuments', A([]));
|
||||
this.attrs.onMoveDocument(list, moveSpaceId);
|
||||
|
||||
let cb = this.get('onMoveDocument');
|
||||
cb(list, moveSpaceId);
|
||||
|
||||
return true;
|
||||
},
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
//
|
||||
// https://documize.com
|
||||
|
||||
import $ from 'jquery';
|
||||
import { empty } from '@ember/object/computed';
|
||||
import { schedule } from '@ember/runloop';
|
||||
import { inject as service } from '@ember/service';
|
||||
|
|
|
@ -23,12 +23,16 @@ export default Component.extend(AuthMixin, {
|
|||
folderService: service('folder'),
|
||||
localStorage: service('localStorage'),
|
||||
hasCategories: gt('categories.length', 0),
|
||||
filteredDocs: [],
|
||||
categoryLinkName: 'Manage',
|
||||
spaceSettings: computed('permissions', function() {
|
||||
return this.get('permissions.spaceOwner') || this.get('permissions.spaceManage');
|
||||
}),
|
||||
|
||||
init() {
|
||||
this._super(...arguments);
|
||||
this.filteredDocs = [];
|
||||
},
|
||||
|
||||
didReceiveAttrs() {
|
||||
this._super(...arguments);
|
||||
this.setup();
|
||||
|
@ -108,7 +112,8 @@ export default Component.extend(AuthMixin, {
|
|||
});
|
||||
|
||||
this.set('documents', documents);
|
||||
this.attrs.onRefresh();
|
||||
let cb = this.get('onRefresh');
|
||||
cb.onRefresh();
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue