File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ import { triggerWindowResizeEvent } from '@/utils/util'
162162import { mapState , mapActions } from ' vuex'
163163import { mixin , mixinDevice } from ' @/utils/mixin.js'
164164import { isAdmin } from ' @/role'
165- import { api } from ' @/api'
165+ import { getAPI } from ' @/api'
166166import Drawer from ' @/components/widgets/Drawer'
167167import Setting from ' @/components/view/Setting.vue'
168168import 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
You can’t perform that action at this time.
0 commit comments