mirror of
https://github.com/documize/community.git
synced 2025-07-23 15:19:42 +02:00
[WIP] refactoring start document UX
This commit is contained in:
parent
aee9345886
commit
18fc5db8c6
13 changed files with 145 additions and 198 deletions
|
@ -56,7 +56,7 @@ export default Component.extend(NotifierMixin, AuthMixin, {
|
|||
|
||||
$('#add-space-modal').on('show.bs.modal', function(event) { // eslint-disable-line no-unused-vars
|
||||
schedule('afterRender', () => {
|
||||
$("#new-space-name").focus();
|
||||
$("#new-document-name").focus();
|
||||
});
|
||||
});
|
||||
},
|
||||
|
@ -86,11 +86,6 @@ export default Component.extend(NotifierMixin, AuthMixin, {
|
|||
folderId: this.get('space.id')
|
||||
};
|
||||
|
||||
if (is.empty(pin.pin)) {
|
||||
$('#pin-space-name').addClass('error').focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
this.get('pinned').pinItem(pin).then((pin) => {
|
||||
$('#pin-space-button').tooltip('dispose');
|
||||
this.set('pinState.isPinned', true);
|
||||
|
@ -149,6 +144,14 @@ export default Component.extend(NotifierMixin, AuthMixin, {
|
|||
$('#add-space-modal').modal('dispose');
|
||||
|
||||
this.attrs.onAddSpace(payload);
|
||||
},
|
||||
|
||||
onImport() {
|
||||
this.attrs.onRefresh();
|
||||
},
|
||||
|
||||
onHideStartDocument() {
|
||||
// this.set('showStartDocument', false);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue