mirror of
https://github.com/documize/community.git
synced 2025-07-23 15:19:42 +02:00
Move space deletion & archived docs into Space settings
This commit is contained in:
parent
b37f9d601f
commit
7e959b448c
17 changed files with 98 additions and 169 deletions
|
@ -178,26 +178,6 @@ export default Component.extend(ModalMixin, TooltipMixin, AuthMixin, Notifier, {
|
|||
return true;
|
||||
},
|
||||
|
||||
onSpaceDelete(e) {
|
||||
e.preventDefault();
|
||||
|
||||
let spaceName = this.get('space').get('name');
|
||||
let spaceNameTyped = this.get('deleteSpaceName');
|
||||
|
||||
if (spaceNameTyped !== spaceName || spaceNameTyped === '' || spaceName === '') {
|
||||
$("#delete-space-name").addClass("is-invalid").focus();
|
||||
return;
|
||||
}
|
||||
|
||||
this.set('deleteSpaceName', '');
|
||||
$("#delete-space-name").removeClass("is-invalid");
|
||||
|
||||
let cb = this.get('onDeleteSpace');
|
||||
cb(this.get('space.id'));
|
||||
|
||||
this.modalClose('#space-delete-modal');
|
||||
},
|
||||
|
||||
onShowEmptyDocModal() {
|
||||
this.modalOpen("#empty-doc-modal", {"show": true}, '#empty-doc-name');
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue