Project

General

Profile

« Previous | Next » 

Revision 56740

[Trunk | Admin]:
1. pages.component: Show link to add pageHelpContents only when at least one posiiton is enabled.
2. help-content.service:
Add 'pid' parameter in 'getDivIdsFull()' method to be able to get divIds that are enabled in a community.
Add 'with_positions' parameter in 'getPages()' method to be able to get pages that have at least one position or no positions enabled.
3. app.component: Hide '/classContents' route for communities (currently no divIds for communities).
4. div-help-content-form.component: Get divIds that are enabled for the community.
5. div-help-contents.component: When a page is pre-selected ('pageId' url param exists), check if page is enabled in the community, otherwise redirect.
6. edit-div-help-content.component & new-div-help-content.component:
Add 'getPage()' method, to get page (if disabled in community, redirect - if pageId is pre-selected) and show it in the page title.
7. edit-div-help-content.component: If there is no 'divContentId' url param, redirect
8. edit-page-help-content.component:
If there is no 'pageContentId' url param, redirect
Add 'getPage()' method, to get page (if disabled in community, redirect - if pageId is pre-selected or use pageHelpContent.page - if pageId != pageHelpContent.page, redirect) and show it in the p$
9. new-page-help-content.component: Add 'getPage()' method, to get page (if disabled in community, redirect - if pageId is pre-selected) and show it in the page title.
10. page-help-content-form.component: Do not perform a query to get page when it is pre-selected (new & edit do the query now) | Get pages with at least one posiiton enabled.
11. page-help-contents.component: When a page is pre-selected ('pageId' url param exists), check if page is enabled in the community, otherwise redirect | Get pages with at least one posiiton enabled.

View differences:

new-page-help-content.component.html
5 5
                <i class="ion-navicon"></i>
6 6
            </div>
7 7

  
8
            <div class="uk-text-large">New help text</div>
8
            <div class="uk-text-large">New help text <span *ngIf="page && page.name">of page "{{page.name}}"</span></div>
9 9
        </div>
10 10

  
11 11
        <div class="content-wrapper">
......
15 15
                <div *ngIf="errorMessage" class="uk-alert uk-alert-danger" role="alert">{{errorMessage}}</div>
16 16
                <div [style.display]="showLoading ? 'inline' : 'none'" class="uk-animation-fade uk-width-1-1" role="alert"><img class="uk-align-center loading-gif"></div>
17 17

  
18
                <page-content-form [communityPid]="communityPid" [pageId]="pageId" [updateErrorMessage]="updateErrorMessage"></page-content-form>
18
                <page-content-form [communityPid]="communityPid" [pageId]="pageId" [page]="page" [updateErrorMessage]="updateErrorMessage"></page-content-form>
19 19
                <button (click)="saveCustom()" class="uk-button uk-button-primary uk-margin-small-right">Save help text</button>
20 20
                <button (click)="cancelCustom()" class="uk-button">Cancel</button>
21 21
            </div>

Also available in: Unified diff