mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-09-03 07:32:05 +00:00
Fix minor lint concerns
Closes https://github.com/turt2live/matrix-dimension/pull/369
This commit is contained in:
parent
c79cd46f49
commit
290136ff99
@ -52,9 +52,9 @@
|
|||||||
</span>
|
</span>
|
||||||
<ui-switch [checked]="pack.isEnabled" size="small" [disabled]="isUpdating"
|
<ui-switch [checked]="pack.isEnabled" size="small" [disabled]="isUpdating"
|
||||||
(change)="toggleEnabled(pack)"></ui-switch>
|
(change)="toggleEnabled(pack)"></ui-switch>
|
||||||
<span *ngIf="!pack.isEnabled && !isUpdating" class="removeButton" title="remove stickerpack" (click)="removePack(pack)">
|
<span *ngIf="!pack.isEnabled && !isUpdating" class="removeButton" title="remove stickerpack" (click)="removePack(pack)">
|
||||||
<i class="fa fa-trash"></i>
|
<i class="fa fa-trash"></i>
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -72,11 +72,12 @@ export class AdminStickerPacksComponent implements OnInit {
|
|||||||
public removePack(pack: FE_StickerPack) {
|
public removePack(pack: FE_StickerPack) {
|
||||||
this.isUpdating = true;
|
this.isUpdating = true;
|
||||||
this.adminStickers.removePack(pack.id).then(() => {
|
this.adminStickers.removePack(pack.id).then(() => {
|
||||||
for (let i = 0; i < this.packs.length; ++i)
|
for (let i = 0; i < this.packs.length; ++i) {
|
||||||
if (this.packs[i].id === pack.id) {
|
if (this.packs[i].id === pack.id) {
|
||||||
this.packs.splice(i, 1);
|
this.packs.splice(i, 1);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
this.isUpdating = false;
|
this.isUpdating = false;
|
||||||
this.toaster.pop("success", "Sticker pack removed");
|
this.toaster.pop("success", "Sticker pack removed");
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
|
Loading…
Reference in New Issue
Block a user