committed by
GitHub
24 changed files with 116 additions and 415 deletions
@ -1,24 +0,0 @@ |
|||||
<!-- |
|
||||
|
|
||||
Copyright © 2016-2024 The Thingsboard Authors |
|
||||
|
|
||||
Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||
you may not use this file except in compliance with the License. |
|
||||
You may obtain a copy of the License at |
|
||||
|
|
||||
http://www.apache.org/licenses/LICENSE-2.0 |
|
||||
|
|
||||
Unless required by applicable law or agreed to in writing, software |
|
||||
distributed under the License is distributed on an "AS IS" BASIS, |
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||
See the License for the specific language governing permissions and |
|
||||
limitations under the License. |
|
||||
|
|
||||
--> |
|
||||
<div class="flex flex-full flex-row items-center justify-end"> |
|
||||
<button mat-stroked-button color="primary" (click)="createTarget($event)"> |
|
||||
<div class="flex flex-row items-center justify-start"> |
|
||||
<mat-icon>add</mat-icon>{{ 'notification.add-recipients' | translate }} |
|
||||
</div> |
|
||||
</button> |
|
||||
</div> |
|
||||
@ -1,18 +0,0 @@ |
|||||
/** |
|
||||
* Copyright © 2016-2024 The Thingsboard Authors |
|
||||
* |
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||
* you may not use this file except in compliance with the License. |
|
||||
* You may obtain a copy of the License at |
|
||||
* |
|
||||
* http://www.apache.org/licenses/LICENSE-2.0 |
|
||||
* |
|
||||
* Unless required by applicable law or agreed to in writing, software |
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||
* See the License for the specific language governing permissions and |
|
||||
* limitations under the License. |
|
||||
*/ |
|
||||
:host{ |
|
||||
width: 10000px; |
|
||||
} |
|
||||
@ -1,38 +0,0 @@ |
|||||
///
|
|
||||
/// Copyright © 2016-2024 The Thingsboard Authors
|
|
||||
///
|
|
||||
/// Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||
/// you may not use this file except in compliance with the License.
|
|
||||
/// You may obtain a copy of the License at
|
|
||||
///
|
|
||||
/// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||
///
|
|
||||
/// Unless required by applicable law or agreed to in writing, software
|
|
||||
/// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||
/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||
/// See the License for the specific language governing permissions and
|
|
||||
/// limitations under the License.
|
|
||||
///
|
|
||||
|
|
||||
import { Component } from '@angular/core'; |
|
||||
import { EntityTableHeaderComponent } from '@home/components/entity/entity-table-header.component'; |
|
||||
import { Store } from '@ngrx/store'; |
|
||||
import { AppState } from '@core/core.state'; |
|
||||
import { NotificationTarget } from '@shared/models/notification.models'; |
|
||||
|
|
||||
@Component({ |
|
||||
selector: 'tb-recipient-table-header', |
|
||||
templateUrl: './recipient-table-header.component.html', |
|
||||
styleUrls: ['recipient-table-header.component.scss'] |
|
||||
}) |
|
||||
export class RecipientTableHeaderComponent extends EntityTableHeaderComponent<NotificationTarget> { |
|
||||
|
|
||||
constructor(protected store: Store<AppState>) { |
|
||||
super(store); |
|
||||
} |
|
||||
|
|
||||
createTarget($event: Event) { |
|
||||
this.entitiesTableConfig.onEntityAction({event: $event, action: 'add', entity: null}); |
|
||||
} |
|
||||
|
|
||||
} |
|
||||
@ -1,24 +0,0 @@ |
|||||
<!-- |
|
||||
|
|
||||
Copyright © 2016-2024 The Thingsboard Authors |
|
||||
|
|
||||
Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||
you may not use this file except in compliance with the License. |
|
||||
You may obtain a copy of the License at |
|
||||
|
|
||||
http://www.apache.org/licenses/LICENSE-2.0 |
|
||||
|
|
||||
Unless required by applicable law or agreed to in writing, software |
|
||||
distributed under the License is distributed on an "AS IS" BASIS, |
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||
See the License for the specific language governing permissions and |
|
||||
limitations under the License. |
|
||||
|
|
||||
--> |
|
||||
<div class="flex flex-full flex-row items-center justify-end"> |
|
||||
<button mat-stroked-button color="primary" (click)="createTarget($event)"> |
|
||||
<div class="flex flex-row items-center justify-start"> |
|
||||
<mat-icon>add</mat-icon>{{ 'notification.add-rule' | translate }} |
|
||||
</div> |
|
||||
</button> |
|
||||
</div> |
|
||||
@ -1,18 +0,0 @@ |
|||||
/** |
|
||||
* Copyright © 2016-2024 The Thingsboard Authors |
|
||||
* |
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||
* you may not use this file except in compliance with the License. |
|
||||
* You may obtain a copy of the License at |
|
||||
* |
|
||||
* http://www.apache.org/licenses/LICENSE-2.0 |
|
||||
* |
|
||||
* Unless required by applicable law or agreed to in writing, software |
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||
* See the License for the specific language governing permissions and |
|
||||
* limitations under the License. |
|
||||
*/ |
|
||||
:host{ |
|
||||
width: 10000px; |
|
||||
} |
|
||||
@ -1,38 +0,0 @@ |
|||||
///
|
|
||||
/// Copyright © 2016-2024 The Thingsboard Authors
|
|
||||
///
|
|
||||
/// Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||
/// you may not use this file except in compliance with the License.
|
|
||||
/// You may obtain a copy of the License at
|
|
||||
///
|
|
||||
/// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||
///
|
|
||||
/// Unless required by applicable law or agreed to in writing, software
|
|
||||
/// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||
/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||
/// See the License for the specific language governing permissions and
|
|
||||
/// limitations under the License.
|
|
||||
///
|
|
||||
|
|
||||
import { Component } from '@angular/core'; |
|
||||
import { EntityTableHeaderComponent } from '@home/components/entity/entity-table-header.component'; |
|
||||
import { Store } from '@ngrx/store'; |
|
||||
import { AppState } from '@core/core.state'; |
|
||||
import { NotificationRule } from '@shared/models/notification.models'; |
|
||||
|
|
||||
@Component({ |
|
||||
selector: 'tb-rule-table-header', |
|
||||
templateUrl: './rule-table-header.component.html', |
|
||||
styleUrls: ['rule-table-header.component.scss'] |
|
||||
}) |
|
||||
export class RuleTableHeaderComponent extends EntityTableHeaderComponent<NotificationRule> { |
|
||||
|
|
||||
constructor(protected store: Store<AppState>) { |
|
||||
super(store); |
|
||||
} |
|
||||
|
|
||||
createTarget($event: Event) { |
|
||||
this.entitiesTableConfig.onEntityAction({event: $event, action: 'add', entity: null}); |
|
||||
} |
|
||||
|
|
||||
} |
|
||||
@ -1,24 +0,0 @@ |
|||||
<!-- |
|
||||
|
|
||||
Copyright © 2016-2024 The Thingsboard Authors |
|
||||
|
|
||||
Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||
you may not use this file except in compliance with the License. |
|
||||
You may obtain a copy of the License at |
|
||||
|
|
||||
http://www.apache.org/licenses/LICENSE-2.0 |
|
||||
|
|
||||
Unless required by applicable law or agreed to in writing, software |
|
||||
distributed under the License is distributed on an "AS IS" BASIS, |
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||
See the License for the specific language governing permissions and |
|
||||
limitations under the License. |
|
||||
|
|
||||
--> |
|
||||
<div class="flex flex-full flex-row items-center justify-end"> |
|
||||
<button mat-stroked-button color="primary" (click)="createTemplate($event)"> |
|
||||
<div class="flex flex-row items-center justify-start"> |
|
||||
<mat-icon>add</mat-icon>{{ 'notification.add-template' | translate }} |
|
||||
</div> |
|
||||
</button> |
|
||||
</div> |
|
||||
@ -1,18 +0,0 @@ |
|||||
/** |
|
||||
* Copyright © 2016-2024 The Thingsboard Authors |
|
||||
* |
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||
* you may not use this file except in compliance with the License. |
|
||||
* You may obtain a copy of the License at |
|
||||
* |
|
||||
* http://www.apache.org/licenses/LICENSE-2.0 |
|
||||
* |
|
||||
* Unless required by applicable law or agreed to in writing, software |
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||
* See the License for the specific language governing permissions and |
|
||||
* limitations under the License. |
|
||||
*/ |
|
||||
:host{ |
|
||||
width: 10000px; |
|
||||
} |
|
||||
@ -1,38 +0,0 @@ |
|||||
///
|
|
||||
/// Copyright © 2016-2024 The Thingsboard Authors
|
|
||||
///
|
|
||||
/// Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||
/// you may not use this file except in compliance with the License.
|
|
||||
/// You may obtain a copy of the License at
|
|
||||
///
|
|
||||
/// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||
///
|
|
||||
/// Unless required by applicable law or agreed to in writing, software
|
|
||||
/// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||
/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||
/// See the License for the specific language governing permissions and
|
|
||||
/// limitations under the License.
|
|
||||
///
|
|
||||
|
|
||||
import { Component } from '@angular/core'; |
|
||||
import { EntityTableHeaderComponent } from '@home/components/entity/entity-table-header.component'; |
|
||||
import { Store } from '@ngrx/store'; |
|
||||
import { AppState } from '@core/core.state'; |
|
||||
import { NotificationTemplate } from '@shared/models/notification.models'; |
|
||||
|
|
||||
@Component({ |
|
||||
selector: 'tb-template-table-header', |
|
||||
templateUrl: './template-table-header.component.html', |
|
||||
styleUrls: ['template-table-header.component.scss'] |
|
||||
}) |
|
||||
export class TemplateTableHeaderComponent extends EntityTableHeaderComponent<NotificationTemplate> { |
|
||||
|
|
||||
constructor(protected store: Store<AppState>) { |
|
||||
super(store); |
|
||||
} |
|
||||
|
|
||||
createTemplate($event: Event) { |
|
||||
this.entitiesTableConfig.onEntityAction({event: $event, action: 'add', entity: null}); |
|
||||
} |
|
||||
|
|
||||
} |
|
||||
Loading…
Reference in new issue