Always show dialog to add new sticker packs when custom packs are enabled.

The text box allowing a user to add a new sticker pack was behind
a `packs > 0` check, making it impossible to add new packs unless
at least one other pack was already present.
This commit is contained in:
Benno Evers 2019-07-09 23:54:11 +02:00
parent 4ae49702bd
commit 7c1b0094b5

View File

@ -2,12 +2,12 @@
<my-spinner></my-spinner> <my-spinner></my-spinner>
</div> </div>
<div *ngIf="!isLoading"> <div *ngIf="!isLoading">
<my-ibox boxTitle="Sticker Packs" *ngIf="packs.length <= 0"> <my-ibox boxTitle="Sticker Packs" *ngIf="packs.length <= 0 && !customEnabled">
<div class="my-ibox-content"> <div class="my-ibox-content">
<h5 style="text-align: center;">Sticker packs are not enabled on this Dimension instance.</h5> <h5 style="text-align: center;">Sticker packs are not enabled on this Dimension instance.</h5>
</div> </div>
</my-ibox> </my-ibox>
<my-ibox boxTitle="Add Sticker Packs" *ngIf="packs.length > 0 && customEnabled"> <my-ibox boxTitle="Add Sticker Packs" *ngIf="customEnabled">
<div class="my-ibox-content"> <div class="my-ibox-content">
<form (submit)="importPack()" novalidate name="importForm"> <form (submit)="importPack()" novalidate name="importForm">
<label class="label-block"> <label class="label-block">
@ -42,4 +42,4 @@
</div> </div>
</div> </div>
</my-ibox> </my-ibox>
</div> </div>