mirror of
https://github.com/getredash/redash.git
synced 2026-05-10 15:00:16 -04:00
17 lines
328 B
JavaScript
17 lines
328 B
JavaScript
import { $http } from '@/services/ng';
|
|
|
|
class OrganizationStatus {
|
|
constructor() {
|
|
this.objectCounters = {};
|
|
}
|
|
|
|
refresh() {
|
|
return $http.get('api/organization/status').then(({ data }) => {
|
|
this.objectCounters = data.object_counters;
|
|
return this;
|
|
});
|
|
}
|
|
}
|
|
|
|
export default new OrganizationStatus();
|