web: re-format with prettier
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
		| @ -8,12 +8,12 @@ import AKGlobal from "../../authentik.css"; | ||||
|  | ||||
| @customElement("ak-table-pagination") | ||||
| export class TablePagination extends LitElement { | ||||
|     @property({attribute: false}) | ||||
|     @property({ attribute: false }) | ||||
|     pages?: AKPagination; | ||||
|  | ||||
|     @property({attribute: false}) | ||||
|     @property({ attribute: false }) | ||||
|     // eslint-disable-next-line | ||||
|     pageChangeHandler: (page: number) => void = (page: number) => {} | ||||
|     pageChangeHandler: (page: number) => void = (page: number) => {}; | ||||
|  | ||||
|     static get styles(): CSSResult[] { | ||||
|         return [PFBase, PFButton, PFPagination, AKGlobal]; | ||||
| @ -33,7 +33,9 @@ export class TablePagination extends LitElement { | ||||
|                     <div class="pf-c-pagination__nav-control pf-m-prev"> | ||||
|                         <button | ||||
|                             class="pf-c-button pf-m-plain" | ||||
|                             @click=${() => { this.pageChangeHandler(this.pages?.previous || 0); }} | ||||
|                             @click=${() => { | ||||
|                                 this.pageChangeHandler(this.pages?.previous || 0); | ||||
|                             }} | ||||
|                             ?disabled="${(this.pages?.previous || 0) < 1}" | ||||
|                             aria-label="${t`Go to previous page`}" | ||||
|                         > | ||||
| @ -43,7 +45,9 @@ export class TablePagination extends LitElement { | ||||
|                     <div class="pf-c-pagination__nav-control pf-m-next"> | ||||
|                         <button | ||||
|                             class="pf-c-button pf-m-plain" | ||||
|                             @click=${() => { this.pageChangeHandler(this.pages?.next || 0); }} | ||||
|                             @click=${() => { | ||||
|                                 this.pageChangeHandler(this.pages?.next || 0); | ||||
|                             }} | ||||
|                             ?disabled="${(this.pages?.next || 0) <= 0}" | ||||
|                             aria-label="${t`Go to next page`}" | ||||
|                         > | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Jens Langhammer
					Jens Langhammer