Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5 spinner loader on api calls #119

Merged
merged 5 commits into from
Jun 10, 2019
Merged

Conversation

jejoivanic
Copy link
Contributor

@jejoivanic jejoivanic commented Jun 7, 2019

Feature

Implemented a default spinner component which covers the Vue-Admin Actions views during the requests. For the template I used the Vuetify component v-progress-circular in color green.

Implementation

Implemented in an isolated component which has a property of type Boolean to indicate whether the spinner should be displayed or not.
For the loading state, interceptors for the request and response were implemented. These interceptors commit an action which sets the isLoading state to true or false.
All the Action components use the same getter for the isLoading state to pass the value to the Spinner component.

Closes #5

@sgobotta
Copy link
Member

Nice work on the Spinners!
CI is stopping on some unused vars. Is this WIP or should we just fix and merge?

@sgobotta sgobotta added this to Needs review in Current Tasks Jun 10, 2019
@jejoivanic
Copy link
Contributor Author

I'm so sorry! It's intended to be a finished work so I will review the code right away!

@jejoivanic
Copy link
Contributor Author

There you go. There were some lint errors in the e2e tests. I needed to create a getter in the spinner-list test to solve a variable scoping problem.

@sgobotta
Copy link
Member

Great! Merging right away.

@sgobotta sgobotta merged commit 0560bc9 into develop Jun 10, 2019
Current Tasks automation moved this from Needs review to Done Jun 10, 2019
@sgobotta sgobotta deleted the 5-spinner-loader-on-api-calls branch June 10, 2019 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Current Tasks
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants