Skip to content

Commit aea27e2

Browse files
committed
Update GlobalLayout.vue
1 parent c5b3880 commit aea27e2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ui/src/components/page/GlobalLayout.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ import { triggerWindowResizeEvent } from '@/utils/util'
162162
import { mapState, mapActions } from 'vuex'
163163
import { mixin, mixinDevice } from '@/utils/mixin.js'
164164
import { isAdmin } from '@/role'
165-
import { api } from '@/api'
165+
import { getAPI } from '@/api'
166166
import Drawer from '@/components/widgets/Drawer'
167167
import Setting from '@/components/view/Setting.vue'
168168
import EventSidebar from '@/components/view/EventSidebar.vue'
@@ -377,7 +377,7 @@ export default {
377377
},
378378
checkShutdown () {
379379
if (!this.$store.getters.features.securityfeaturesenabled) {
380-
api('readyForShutdown', {}).then(json => {
380+
getAPI('readyForShutdown', {}).then(json => {
381381
this.$store.dispatch(
382382
'SetShutdownTriggered',
383383
json.readyforshutdownresponse.readyforshutdown.shutdowntriggered || false

0 commit comments

Comments
 (0)