MCPcopy Create free account
hub / github.com/apache/cloudstack / mounted

Function mounted

ui/src/utils/mixin.js:71–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69
70const AppDeviceEnquire = {
71 mounted () {
72 const { $store } = this
73 deviceEnquire(deviceType => {
74 switch (deviceType) {
75 case DEVICE_TYPE.DESKTOP:
76 $store.commit('TOGGLE_DEVICE', 'desktop')
77 $store.dispatch('setSidebar', true)
78 break
79 case DEVICE_TYPE.TABLET:
80 $store.commit('TOGGLE_DEVICE', 'tablet')
81 $store.dispatch('setSidebar', false)
82 break
83 case DEVICE_TYPE.MOBILE:
84 default:
85 $store.commit('TOGGLE_DEVICE', 'mobile')
86 $store.dispatch('setSidebar', true)
87 break
88 }
89 })
90 }
91}
92
93const mixinForm = {

Callers

nothing calls this directly

Calls 3

deviceEnquireFunction · 0.90
dispatchMethod · 0.65
commitMethod · 0.45

Tested by

no test coverage detected