-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Feature/2733 #3165
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
Merged
Merged
Feature/2733 #3165
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
da309f9
Added quantity of products to input
Michal-Dziedzinski ce9f955
Added max range of product which depends on quantity of product
Michal-Dziedzinski 4bfa064
Added disable atribute to input component
Michal-Dziedzinski 23dab04
Added button disable if quantity is equal 0 and changed InputNumber s…
Michal-Dziedzinski d6f1a45
Added changes to actions filem proposed at CR
Michal-Dziedzinski ad8c519
Merged with develop
Michal-Dziedzinski 98c86bb
Added await to check action
Michal-Dziedzinski ff7ec1a
Merge branch 'develop' into feature/2733
pkarw 928e000
Add pleceholder when getting quantity, change place of calling getQua…
Michal-Dziedzinski 13df17c
Merge branch 'feature/2733' of https://github.com/DivanteLtd/vue-stor…
Michal-Dziedzinski c05c851
Fix disabled button
Michal-Dziedzinski 792074b
Added info to changelog and merged changes
Michal-Dziedzinski 5d4a07e
Merged with feture/#2773
Michal-Dziedzinski 2881635
Merged with develop
Michal-Dziedzinski a523cca
Remove console.log()
Michal-Dziedzinski f9727f3
Add mutations to stock
Michal-Dziedzinski 841d333
Fix some names, import mutations to indes.ts, fix SET_STOCK_CACHE_PRO…
Michal-Dziedzinski a599674
Merge branch 'develop' into feature/2733
pkarw 5f0637a
Update core/modules/catalog/store/stock/mutations.ts
Michal-Dziedzinski b938eb7
Merge branch 'develop' into feature/2733
Michal-Dziedzinski 2fd3f7c
Update core/modules/catalog/store/stock/mutations.ts
Michal-Dziedzinski a081cea
Add loader and add computed property as input name
Michal-Dziedzinski d2fd540
Merge branch 'develop' into feature/2733
Michal-Dziedzinski 52049e2
Merge branch 'develop' into feature/2733
pkarw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| export const SN_CATALOG = 'catalog' | ||
| export const SET_STOCK_CACHE = `${SN_CATALOG}/SET_STOCK_CACHE` | ||
| export const SET_STOCK_CACHE_PRODUCT = `${SN_CATALOG}/SET_STOCK_CACHE_PRODUCT` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| import { MutationTree } from 'vuex' | ||
| import StockState from '../../types/StockState' | ||
| import * as types from './mutation-types' | ||
|
|
||
| const mutations: MutationTree<StockState> = { | ||
| [types.SET_STOCK_CACHE] (state, cache) { | ||
| state.cache = cache | ||
| }, | ||
| [types.SET_STOCK_CACHE_PRODUCT] (state, { productId, productInfo }) { | ||
| state.cache = Object.assign({}, state.cache, { | ||
| [productId]: productInfo | ||
| }) | ||
| } | ||
| } | ||
|
|
||
| export default mutations |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| <template functional> | ||
| <div class="spinner"> | ||
| <svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" width="22px" height="22px" viewBox="0 0 128 128" xml:space="preserve"><rect x="0" y="0" width="100%" height="100%" fill="transparent" /><g transform="rotate(135 64 64)"><circle cx="16" cy="64" r="16" fill="#000000" fill-opacity="1" /><circle cx="16" cy="64" r="16" fill="#555555" fill-opacity="0.67" transform="rotate(45,64,64)" /><circle cx="16" cy="64" r="16" fill="#949494" fill-opacity="0.42" transform="rotate(90,64,64)" /><circle cx="16" cy="64" r="16" fill="#cccccc" fill-opacity="0.2" transform="rotate(135,64,64)" /><circle cx="16" cy="64" r="16" fill="#e1e1e1" fill-opacity="0.12" transform="rotate(180,64,64)" /><circle cx="16" cy="64" r="16" fill="#e1e1e1" fill-opacity="0.12" transform="rotate(225,64,64)" /><circle cx="16" cy="64" r="16" fill="#e1e1e1" fill-opacity="0.12" transform="rotate(270,64,64)" /><circle cx="16" cy="64" r="16" fill="#e1e1e1" fill-opacity="0.12" transform="rotate(315,64,64)" /><animateTransform attributeName="transform" type="rotate" values="0 64 64;315 64 64;270 64 64;225 64 64;180 64 64;135 64 64;90 64 64;45 64 64" calcMode="discrete" dur="720ms" repeatCount="indefinite" /></g></svg> | ||
| </div> | ||
| </template> | ||
|
|
||
| <script> | ||
| export default { | ||
| name: 'Spinner', | ||
| functional: true | ||
| } | ||
| </script> | ||
|
|
||
| <style lang="scss" scoped> | ||
| .spinner { | ||
| padding: 0 15px; | ||
| } | ||
| </style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we use consts defined at the top of the file for these statuses?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to me that this will not improve readability in this case. Unless I do not see something;)