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

upgraded Ember and Bootstrap, merged changes

This commit is contained in:
sauls8t 2018-01-22 10:31:03 +00:00
parent b4fd42da38
commit 5dd7d9c181
114 changed files with 9814 additions and 1361 deletions

View file

@ -9,27 +9,33 @@
//
// https://documize.com
import $ from 'jquery';
import { computed } from '@ember/computed';
import { inject as service } from '@ember/service';
import Controller from '@ember/controller';
import TooltipMixin from '../../../mixins/tooltip';
export default Controller.extend(TooltipMixin, {
folderService: service('folder'),
folders: [],
dropdown: null,
deleteSpace: {
id: '',
name: ''
init() {
this._super(...arguments);
this.folders = [];
this.deleteSpace = {
id: '',
name: ''
};
},
label: function () {
label: computed('folders', function() {
switch (this.get('folders').length) {
case 1:
return "space";
default:
return "spaces";
}
}.property('folders'),
}),
actions: {
onShow(id) {