Skip to content

Commit

Permalink
Added calls to change the page type [comixed#362]
Browse files Browse the repository at this point in the history
  • Loading branch information
mcpierce committed Jun 24, 2020
1 parent 6ad6f76 commit 0336e69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Expand Up @@ -36,16 +36,15 @@
</td>
<td>{{ page.filename }}</td>
<td class='cx-table-column-align-center'>
<p-inplace [disabled]='true'>
<p-inplace>
<span pInplaceDisplay>
{{ 'comic-pages.page-type.' + page.page_type.name | translate }}
</span>
<span pInplaceContent>
<p-dropdown
[options]='pageTypeOptions'
[(ngModel)]='page.page_type'
(onChange)='setPageType(page, $event.value)'
></p-dropdown>
(onChange)='setPageType(page, $event.value)'></p-dropdown>
</span>
</p-inplace>
</td>
Expand Down
Expand Up @@ -67,7 +67,7 @@ export class ComicPagesComponent implements OnInit, OnDestroy {

setPageType(page: Page, pageType: PageType): void {
this.logger.debug('setting page type:', page, pageType);
// TODO this needs to be written
this.comicAdaptor.setPageType(page, pageType);
}

blockPage(page: Page): void {
Expand Down

0 comments on commit 0336e69

Please sign in to comment.