2018-03-26 03:01:05 +00:00
|
|
|
<my-complex-bot-config [botComponent]="this">
|
|
|
|
<ng-template #botParamsTemplate>
|
2018-03-27 03:48:44 +00:00
|
|
|
<my-ibox>
|
|
|
|
<h5 class="my-ibox-title">
|
2020-10-23 11:30:20 +00:00
|
|
|
{{'Feeds' | translate}}
|
2018-03-27 03:48:44 +00:00
|
|
|
</h5>
|
|
|
|
<div class="my-ibox-content">
|
|
|
|
<form (submit)="interceptSave()" novalidate name="saveForm">
|
|
|
|
<table class="table table-striped table-condensed table-bordered">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>URL</th>
|
2020-10-23 11:30:20 +00:00
|
|
|
<th>{{'Added by' | translate}}</th>
|
|
|
|
<th class="actions-col">{{'Actions' | translate}}</th>
|
2018-03-27 03:48:44 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr *ngFor="let feed of getFeeds()">
|
|
|
|
<td>{{ feed.url }}</td>
|
|
|
|
<td>{{ feed.addedByUserId }}</td>
|
|
|
|
<td class="actions-col">
|
2019-07-11 04:17:16 +00:00
|
|
|
<button type="button" class="btn btn-sm btn-outline-danger"
|
|
|
|
[disabled]="isUpdating || !feed.isSelf"
|
|
|
|
(click)="removeFeed(feed)">
|
2020-10-23 11:30:20 +00:00
|
|
|
<i class="far fa-trash-alt"></i> {{'Remove' | translate}}
|
2019-07-11 04:17:16 +00:00
|
|
|
</button>
|
2018-03-27 03:48:44 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="3">
|
|
|
|
<div class="input-group input-group-sm">
|
|
|
|
<input type="text" class="form-control"
|
|
|
|
[(ngModel)]="newFeedUrl"
|
|
|
|
placeholder="https://example.org/feed.atom"
|
|
|
|
name="newFeedUrl"
|
2019-07-11 04:17:16 +00:00
|
|
|
title="New feed URL"/>
|
2018-03-27 03:48:44 +00:00
|
|
|
<span class="input-group-btn">
|
|
|
|
<button type="button" class="btn btn-outline-success"
|
|
|
|
[disabled]="isUpdating"
|
|
|
|
(click)="addFeed()">
|
2020-10-23 11:30:20 +00:00
|
|
|
<i class="fa fa-plus"></i> {{'Add' | translate}}
|
2018-03-27 03:48:44 +00:00
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<div style="margin-top: 25px">
|
|
|
|
<button type="submit" class="btn btn-sm btn-primary" [disabled]="isUpdating">
|
2020-10-23 11:30:20 +00:00
|
|
|
<i class="far fa-save"></i> {{'Save' | translate}}
|
2018-03-27 03:48:44 +00:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</my-ibox>
|
2018-03-26 03:01:05 +00:00
|
|
|
</ng-template>
|
2020-10-23 11:30:20 +00:00
|
|
|
</my-complex-bot-config>
|