mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-09-03 15:41:56 +00:00
Fix minor lint concerns
Closes https://github.com/turt2live/matrix-dimension/pull/369
This commit is contained in:
parent
c79cd46f49
commit
290136ff99
@ -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