mirror of
https://github.com/documize/community.git
synced 2025-07-19 13:19:43 +02:00
accept .markdown files and trap fro no spaces on space admin screen
This commit is contained in:
parent
bbcba8eb18
commit
86dcbbd684
5 changed files with 56 additions and 44 deletions
|
@ -74,7 +74,7 @@ export default Ember.Component.extend(NotifierMixin, {
|
|||
url: importUrl,
|
||||
method: "post",
|
||||
paramName: 'attachment',
|
||||
acceptedFiles: ".doc,.docx,.txt,.md,.markdown",
|
||||
acceptedFiles: ".doc,.docx,.md,.markdown,.htm,.html",
|
||||
clickable: true,
|
||||
maxFilesize: 10,
|
||||
parallelUploads: 3,
|
||||
|
|
|
@ -27,6 +27,9 @@ export default Ember.Route.extend(AuthenticatedRouteMixin, {
|
|||
|
||||
setupController(controller, model) {
|
||||
let nonPrivateFolders = model.rejectBy('folderType', 2);
|
||||
if (is.empty(nonPrivateFolders) || is.null(model) || is.undefined(model)) {
|
||||
nonPrivateFolders = [];
|
||||
}
|
||||
controller.set('folders', nonPrivateFolders);
|
||||
|
||||
this.get('folderService').getProtectedFolderInfo().then((people) => {
|
||||
|
@ -48,7 +51,7 @@ export default Ember.Route.extend(AuthenticatedRouteMixin, {
|
|||
},
|
||||
|
||||
activate() {
|
||||
document.title = "Folders | Documize";
|
||||
document.title = "Spaces | Documize";
|
||||
},
|
||||
|
||||
actions: {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<div class="global-folder-settings">
|
||||
{{#if folders}}
|
||||
<div class="global-folder-settings">
|
||||
<div class="form-header">
|
||||
<div class="title">{{folders.length}} shared {{label}}</div>
|
||||
<div class="tip">View and change shared space ownership</div>
|
||||
|
@ -38,4 +39,12 @@
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="global-folder-settings">
|
||||
<div class="form-header">
|
||||
<div class="title">{{folders.length}} shared {{label}}</div>
|
||||
<div class="tip">There are no spaces to maintain</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
|
@ -9,7 +9,7 @@
|
|||
<div class="clearfix" />
|
||||
|
||||
<div id="import-document-button" class="import-document-button">
|
||||
Drag-drop or click to select .doc, .docx, .txt, .md, .markdown files
|
||||
Drag-drop or click to select .doc, .docx, .md, .markdown files
|
||||
</div>
|
||||
|
||||
<div class="list-wrapper">
|
||||
|
|
|
@ -81,7 +81,7 @@ func LibSetup() error {
|
|||
}
|
||||
}
|
||||
|
||||
for _, xtn := range []string{"md"} {
|
||||
for _, xtn := range []string{"md", "markdown"} {
|
||||
err = Lib.RegPlugin("Convert", xtn, md.Convert, nil)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue