mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Merge branch '4.19' into 4.20
This commit is contained in:
commit
14feb259f6
@ -33,6 +33,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import InfiniteScrollSelect from '@/components/widgets/InfiniteScrollSelect'
|
import InfiniteScrollSelect from '@/components/widgets/InfiniteScrollSelect'
|
||||||
|
import eventBus from '@/config/eventBus'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ProjectMenu',
|
name: 'ProjectMenu',
|
||||||
@ -42,7 +43,8 @@ export default {
|
|||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
selectedProjectId: null,
|
selectedProjectId: null,
|
||||||
loading: false
|
loading: false,
|
||||||
|
timestamp: new Date().getTime()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
@ -59,7 +61,8 @@ export default {
|
|||||||
projectsApiParams () {
|
projectsApiParams () {
|
||||||
return {
|
return {
|
||||||
details: 'min',
|
details: 'min',
|
||||||
listall: true
|
listall: true,
|
||||||
|
timestamp: this.timestamp
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -70,6 +73,9 @@ export default {
|
|||||||
this.selectedProjectId = newId
|
this.selectedProjectId = newId
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
eventBus.on('projects-updated', (args) => {
|
||||||
|
this.timestamp = new Date().getTime()
|
||||||
|
})
|
||||||
},
|
},
|
||||||
beforeUnmount () {
|
beforeUnmount () {
|
||||||
if (this.unwatchProject) {
|
if (this.unwatchProject) {
|
||||||
|
|||||||
@ -1386,6 +1386,9 @@ export default {
|
|||||||
if ('successMethod' in action) {
|
if ('successMethod' in action) {
|
||||||
action.successMethod(this, result)
|
action.successMethod(this, result)
|
||||||
}
|
}
|
||||||
|
if (['createProject', 'updateProject', 'deleteProject'].includes(action.api)) {
|
||||||
|
eventBus.emit('projects-updated', { action: action.api, project: this.resource })
|
||||||
|
}
|
||||||
resolve(true)
|
resolve(true)
|
||||||
},
|
},
|
||||||
errorMethod: () => {
|
errorMethod: () => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user