Merged PR 849: #2196 Reservieren InStock Loading Spinner and Styling

#2196 Reservieren InStock Loading Spinner and Styling
This commit is contained in:
Nino Righi
2021-09-17 12:14:35 +00:00
committed by Günther Schmidlehner
parent f0a4006ef0
commit aef54b9f83
3 changed files with 25 additions and 3 deletions

View File

@@ -73,8 +73,10 @@
</div>
<div class="extended-informations">
<div *ngIf="showInStock" class="item-stock">
<ui-icon icon="home" size="1.25rem"></ui-icon> <span>{{ getInStock(item?.product?.ean) }} x</span>
<ui-icon icon="home" size="22px"></ui-icon>
<span>{{ getInStock(item?.product?.ean) }}x</span>
</div>
<ui-spinner *ngIf="showInStock === null" [show]="true"></ui-spinner>
<div class="item-data-selector">
<ui-select-bullet *ngIf="selectable" [ngModel]="selected" (ngModelChange)="setSelected($event)"></ui-select-bullet>
</div>

View File

@@ -86,13 +86,23 @@
.extended-informations {
@apply flex flex-col h-24;
ui-spinner {
@apply p-4;
margin-left: 1.3rem;
}
}
.item-stock {
@apply flex flex-row justify-end items-center;
ui-icon {
@apply text-ucla-blue;
}
span {
@apply ml-2 font-bold text-lg;
@apply ml-1 font-bold text-lg;
padding-top: 5px;
}
}

View File

@@ -9,9 +9,19 @@ import { PipesModule } from '../pipes/pipes.module';
import { UiSelectBulletModule } from '@ui/select-bullet';
import { FormsModule } from '@angular/forms';
import { UiQuantityDropdownModule } from '@ui/quantity-dropdown';
import { UiSpinnerModule } from 'apps/ui/spinner/src/lib/ui-spinner.module';
@NgModule({
imports: [CommonModule, UiIconModule, ProductImageModule, PipesModule, UiSelectBulletModule, FormsModule, UiQuantityDropdownModule],
imports: [
CommonModule,
UiIconModule,
ProductImageModule,
PipesModule,
UiSelectBulletModule,
FormsModule,
UiQuantityDropdownModule,
UiSpinnerModule,
],
exports: [GoodsInOutOrderGroupComponent, GoodsInOutOrderGroupItemComponent],
declarations: [GoodsInOutOrderGroupComponent, GoodsInOutOrderGroupItemComponent],
})