refactoring: update severals components
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { loadState } from '@nextcloud/initial-state'
|
||||
|
||||
const getActiveAppId = () => {
|
||||
const apps = loadState('core', 'apps', {})
|
||||
|
||||
for (let id in apps) {
|
||||
if (apps[id].active) {
|
||||
return id
|
||||
}
|
||||
}
|
||||
|
||||
return null
|
||||
}
|
||||
|
||||
export { getActiveAppId }
|
||||
Reference in New Issue
Block a user