1
0
Fork 0
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:
Harvey Kandola 2017-11-22 17:27:09 +00:00
parent aee9345886
commit 18fc5db8c6
13 changed files with 145 additions and 198 deletions

View file

@ -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);
}
}
});