mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
764 B
37 lines
764 B
/*
|
|
* Squidex Headless CMS
|
|
*
|
|
* @license
|
|
* Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
|
|
*/
|
|
|
|
import { Component, OnInit } from '@angular/core';
|
|
|
|
import {
|
|
PatternDto,
|
|
PatternsState
|
|
} from '@app/shared';
|
|
|
|
@Component({
|
|
selector: 'sqx-patterns-page',
|
|
styleUrls: ['./patterns-page.component.scss'],
|
|
templateUrl: './patterns-page.component.html'
|
|
})
|
|
export class PatternsPageComponent implements OnInit {
|
|
constructor(
|
|
public readonly patternsState: PatternsState
|
|
) {
|
|
}
|
|
|
|
public ngOnInit() {
|
|
this.patternsState.load();
|
|
}
|
|
|
|
public reload() {
|
|
this.patternsState.load(true);
|
|
}
|
|
|
|
public trackByPattern(index: number, pattern: PatternDto) {
|
|
return pattern.id;
|
|
}
|
|
}
|