open-vault/ui/app/adapters/clients/monthly.js
Angel Garbarino 880a8143e0
Calendar widget test and small styling fix on wide screens (#14139)
* setup component test

* fix

* fixes

* make more clear
2022-02-17 16:52:06 -07:00

14 lines
467 B
JavaScript

import ApplicationAdapter from '../application';
export default class MonthlyAdapter extends ApplicationAdapter {
queryRecord() {
let url = `${this.buildURL()}/internal/counters/activity/monthly`;
// Query has startTime defined. The API will return the endTime if none is provided.
return this.ajax(url, 'GET').then((resp) => {
let response = resp || {};
response.id = response.request_id || 'no-data';
return response;
});
}
}