Skip to content

Commit

Permalink
Improved: changed datatype of CountState & improved indentations(#531)
Browse files Browse the repository at this point in the history
  • Loading branch information
R-Sourabh committed Dec 18, 2024
1 parent ec439b7 commit 57c6287
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 53 deletions.
4 changes: 2 additions & 2 deletions src/store/modules/count/CountState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ export default interface CountState {
query: {
facilityIds: Array<string>,
noFacility: boolean,
queryString: any,
sortBy: any
queryString: string,
sortBy: string
},
stats: any;
cycleCounts: any;
Expand Down
12 changes: 2 additions & 10 deletions src/views/Assigned.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,8 @@
</div>
</ion-list>

<ion-infinite-scroll
ref="infiniteScrollRef"
@ionInfinite="loadMoreCycleCounts($event)"
threshold="100px"
v-show="isScrollable"
>
<ion-infinite-scroll-content
loading-spinner="crescent"
:loading-text="translate('Loading')"
/>
<ion-infinite-scroll ref="infiniteScrollRef" v-show="isScrollable" threshold="100px" @ionInfinite="loadMoreCycleCounts($event)">
<ion-infinite-scroll-content loading-spinner="crescent" :loading-text="translate('Loading')" />
</ion-infinite-scroll>
</ion-content>
</ion-page>
Expand Down
14 changes: 3 additions & 11 deletions src/views/Closed.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,9 @@
<ion-icon :icon="cloudDownloadOutline" />
</ion-fab-button>
</ion-fab>

<ion-infinite-scroll
ref="infiniteScrollRef"
@ionInfinite="loadMoreCycleCounts($event)"
threshold="100px"
v-show="isScrollable"
>
<ion-infinite-scroll-content
loading-spinner="crescent"
:loading-text="translate('Loading')"
/>

<ion-infinite-scroll ref="infiniteScrollRef" v-show="isScrollable" threshold="100px" @ionInfinite="loadMoreCycleCounts($event)">
<ion-infinite-scroll-content loading-spinner="crescent" :loading-text="translate('Loading')" />
</ion-infinite-scroll>
</ion-content>
</ion-page>
Expand Down
13 changes: 3 additions & 10 deletions src/views/Count.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,16 +121,9 @@
<p class="empty-state">{{ translate("No cycle counts found") }}</p>
</template>
</main>
<ion-infinite-scroll
@ionInfinite="loadMoreCycleCount($event)"
threshold="100px"
v-show="isScrollable"
ref="infiniteScrollRef"
>
<ion-infinite-scroll-content
loading-spinner="crescent"
:loading-text="translate('Loading')"
/>

<ion-infinite-scroll ref="infiniteScrollRef" v-show="isScrollable" threshold="100px" @ionInfinite="loadMoreCycleCounts($event)">
<ion-infinite-scroll-content loading-spinner="crescent" :loading-text="translate('Loading')" />
</ion-infinite-scroll>
</ion-content>
</ion-page>
Expand Down
12 changes: 2 additions & 10 deletions src/views/Draft.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,8 @@
</ion-fab-list>
</ion-fab>

<ion-infinite-scroll
ref="infiniteScrollRef"
@ionInfinite="loadMoreCycleCounts($event)"
threshold="100px"
v-show="isScrollable"
>
<ion-infinite-scroll-content
loading-spinner="crescent"
:loading-text="translate('Loading')"
/>
<ion-infinite-scroll ref="infiniteScrollRef" v-show="isScrollable" threshold="100px" @ionInfinite="loadMoreCycleCounts($event)">
<ion-infinite-scroll-content loading-spinner="crescent" :loading-text="translate('Loading')" />
</ion-infinite-scroll>
</ion-content>
</ion-page>
Expand Down
12 changes: 2 additions & 10 deletions src/views/PendingReview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,8 @@
</div>
</ion-list>

<ion-infinite-scroll
ref="infiniteScrollRef"
@ionInfinite="loadMoreCycleCounts($event)"
threshold="100px"
v-show="isScrollable"
>
<ion-infinite-scroll-content
loading-spinner="crescent"
:loading-text="translate('Loading')"
/>
<ion-infinite-scroll ref="infiniteScrollRef" v-show="isScrollable" threshold="100px" @ionInfinite="loadMoreCycleCounts($event)">
<ion-infinite-scroll-content loading-spinner="crescent" :loading-text="translate('Loading')" />
</ion-infinite-scroll>
</ion-content>
</ion-page>
Expand Down

0 comments on commit 57c6287

Please sign in to comment.