1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-22 06:39:43 +02:00

Removed space.category screen references

This commit is contained in:
HarveyKandola 2018-06-21 13:58:45 +01:00
parent 5d33860a15
commit 785e4c245d
4 changed files with 659 additions and 668 deletions

File diff suppressed because one or more lines are too long

View file

@ -24,10 +24,6 @@ export default Controller.extend(NotifierMixin, {
this.set('tab', view); this.set('tab', view);
}, },
onCategories() {
this.get('router').transitionTo('folder.category');
},
onRefresh() { onRefresh() {
this.get('target._routerMicrolib').refresh(); this.get('target._routerMicrolib').refresh();
} }

View file

@ -33,11 +33,6 @@
{{ui/ui-list-picker items=categories nameField='category' singleSelect=false}} {{ui/ui-list-picker items=categories nameField='category' singleSelect=false}}
{{#unless selectedCategories}} {{#unless selectedCategories}}
<p class="text-danger">This space has no categories defined yet.</p> <p class="text-danger">This space has no categories defined yet.</p>
{{#if canAddCategory}}
<p>
{{#link-to 'folder.category' space.id space.slug class="btn btn-secondary font-weight-bold"}}Manage categories{{/link-to}}
</p>
{{/if}}
{{/unless}} {{/unless}}
<button type="submit" class="btn btn-success text-uppercase font-weight-bold mt-5" {{action "onSave"}}>Save</button> <button type="submit" class="btn btn-success text-uppercase font-weight-bold mt-5" {{action "onSave"}}>Save</button>

View file

@ -29,7 +29,7 @@
{{#if spaceSettings}} {{#if spaceSettings}}
<div class="text-center {{if (gt categories.length 0) 'mt-4'}}"> <div class="text-center {{if (gt categories.length 0) 'mt-4'}}">
{{#link-to 'folder.category' space.id space.slug class="btn btn-secondary font-weight-bold"}}{{categoryLinkName}}{{/link-to}} {{#link-to 'folder.settings' space.id space.slug class="btn btn-secondary font-weight-bold"}}{{categoryLinkName}}{{/link-to}}
</div> </div>
{{/if}} {{/if}}
</div> </div>