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.
61 lines
3.0 KiB
61 lines
3.0 KiB
<sqx-title message="i18n:rules.listPageTitle"></sqx-title>
|
|
|
|
<sqx-layout layout="main" titleText="i18n:common.rules" titleIcon="rules" [width]="54">
|
|
<ng-container menu>
|
|
<button type="button" class="btn btn-text-secondary" (click)="reload()" title="i18n:rules.refreshTooltip" shortcut="CTRL + B">
|
|
<i class="icon-reset"></i> {{ 'common.refresh' | sqxTranslate }}
|
|
</button>
|
|
|
|
<a class="btn btn-success ms-2" routerLink="new" title="i18n:rules.createTooltip" shortcut="CTRL + U" *ngIf="rulesState.canCreate | async">
|
|
<i class="icon-plus"></i> {{ 'rules.create' | sqxTranslate }}
|
|
</a>
|
|
</ng-container>
|
|
|
|
<ng-container>
|
|
<sqx-list-view innerWidth="54rem" [isLoading]="rulesState.isLoading | async">
|
|
<div class="alert alert-danger mb-4" *ngIf="rulesState.runningRule | async; let runningRule">
|
|
<div class="float-end">
|
|
<a class="force" (click)="cancelRun()">{{ 'common.cancel' | sqxTranslate }}</a>
|
|
</div>
|
|
|
|
{{ 'rules.runningRule' | sqxTranslate: { name: runningRule.name || 'Unnamed Rule' } }}
|
|
</div>
|
|
|
|
<ng-container *ngIf="supportedActions && supportedTriggers && (rulesState.isLoaded | async) && (rulesState.rules | async); let rules">
|
|
<div class="table-items-row table-items-row-summary table-items-row-empty" *ngIf="rules.length === 0">
|
|
{{ 'rules.empty' | sqxTranslate }}
|
|
|
|
<button type="button" class="btn btn-success btn-sm ms-1" routerLink="new" *ngIf="rulesState.canCreate | async">
|
|
<i class="icon icon-plus"></i> {{ 'rules.emptyAddRule' | sqxTranslate }}
|
|
</button>
|
|
</div>
|
|
|
|
<sqx-rule *ngFor="let rule of rules; trackBy: trackByRule"
|
|
[rule]="rule"
|
|
[ruleActions]="supportedActions"
|
|
[ruleTriggers]="supportedTriggers"
|
|
(delete)="delete(rule)"
|
|
(toggle)="toggle(rule)">
|
|
</sqx-rule>
|
|
</ng-container>
|
|
</sqx-list-view>
|
|
</ng-container>
|
|
|
|
<ng-container sidebarMenu>
|
|
<div class="panel-nav">
|
|
<a class="panel-link panel-link-gray" routerLink="events" routerLinkActive="active" title="i18n:common.history" titlePosition="left" *ngIf="rulesState.canReadEvents | async">
|
|
<i class="icon-time"></i>
|
|
</a>
|
|
|
|
<a class="panel-link" routerLink="help" routerLinkActive="active" queryParamsHandling="preserve" title="i18n:common.help" titlePosition="left" #helpLink>
|
|
<i class="icon-help2"></i>
|
|
</a>
|
|
|
|
<sqx-onboarding-tooltip helpId="help" [for]="helpLink" position="left-top" [after]="180000">
|
|
<span [innerHTML]="'common.helpTour' | sqxTranslate | sqxMarkdownInline"></span>
|
|
</sqx-onboarding-tooltip>
|
|
</div>
|
|
</ng-container>
|
|
</sqx-layout>
|
|
|
|
<router-outlet></router-outlet>
|
|
|