1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-23 15:19:42 +02:00

clone space options expandable

This commit is contained in:
Harvey Kandola 2017-08-24 14:04:05 +01:00
parent c235fb569e
commit 63b24aed3f
3 changed files with 638 additions and 625 deletions

View file

@ -28,6 +28,7 @@ export default Ember.Component.extend(TooltipMixin, NotifierMixin, AuthMixin, {
copyDocument: false,
clonedSpace: { id: "" },
showSpace: false,
showClone: false,
didReceiveAttrs() {
let folders = this.get('folders');
@ -61,6 +62,10 @@ export default Ember.Component.extend(TooltipMixin, NotifierMixin, AuthMixin, {
},
actions: {
onToggleCloneOptions() {
this.set('showClone', !this.get('showClone'));
},
onToggleNewSpace() {
let val = !this.get('showSpace');
this.set('showSpace', val);