Compare commits
1 Commits
fix/48-pro
...
9a51b416e5
Author | SHA1 | Date | |
---|---|---|---|
9a51b416e5
|
@ -20,3 +20,6 @@ steps:
|
|||||||
from_secret: "docker_username"
|
from_secret: "docker_username"
|
||||||
password:
|
password:
|
||||||
from_secret: "docker_password"
|
from_secret: "docker_password"
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
@ -54,20 +54,17 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
onError({commit, dispatch}) {
|
onError({commit}) {
|
||||||
commit('setError')
|
commit('setError')
|
||||||
dispatch('clear')
|
commit('clearProfileId')
|
||||||
|
commit('clearProfile')
|
||||||
|
commit('setNotLoading')
|
||||||
|
commit('hideSpinner')
|
||||||
},
|
},
|
||||||
onNotFound({commit, dispatch}) {
|
onNotFound({commit, dispatch}) {
|
||||||
dispatch('onError')
|
dispatch('onError')
|
||||||
commit('setNotFound', true)
|
commit('setNotFound', true)
|
||||||
},
|
},
|
||||||
clear({commit}) {
|
|
||||||
commit('clearProfileId')
|
|
||||||
commit('clearProfile')
|
|
||||||
commit('hideSpinner')
|
|
||||||
commit('setNotLoading')
|
|
||||||
},
|
|
||||||
async load({state, commit, dispatch, rootState}, profileId) {
|
async load({state, commit, dispatch, rootState}, profileId) {
|
||||||
if (state.loading) {
|
if (state.loading) {
|
||||||
return
|
return
|
||||||
@ -114,7 +111,7 @@ export default {
|
|||||||
const responseData = await response.json()
|
const responseData = await response.json()
|
||||||
commit('setProfile', responseData.profile)
|
commit('setProfile', responseData.profile)
|
||||||
commit('hideSpinner')
|
commit('hideSpinner')
|
||||||
commit('setNotLoading')
|
commit('setNotSearching')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -112,8 +112,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions({
|
...mapActions({
|
||||||
loadProfile: 'profile/load',
|
load: 'profile/load'
|
||||||
clearStore: 'profile/clear',
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -127,11 +126,8 @@ export default {
|
|||||||
},
|
},
|
||||||
async created() {
|
async created() {
|
||||||
const id = parseInt(this.$route.params.memberId, 10)
|
const id = parseInt(this.$route.params.memberId, 10)
|
||||||
this.loadProfile(id)
|
this.load(id)
|
||||||
},
|
}
|
||||||
unmounted() {
|
|
||||||
this.clearStore()
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user