We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5116e6 commit 975390bCopy full SHA for 975390b
src/pages/index_resources/index_resources.controller.js
@@ -156,11 +156,11 @@
156
nextPage = response.offset ? fetchEndpoint + '&offset=' + encodeURIComponent(response.offset) : null;
157
nextPageLoading = false;
158
159
- var isTimeInSeconds = isKong1xVersion(env.kong_version);
+ var isTimestampInSeconds = env.kong_version >= "0.14";
160
161
// appending related resources, if any.
162
vm.resources.forEach(function(resource) {
163
- if (resource.created_at && isTimeInSeconds) {
+ if (isTimestampInSeconds && resource.created_at) {
164
resource.created_at *= 1000;
165
}
166
if (!resource.api && resource.api_id) {
@@ -231,9 +231,5 @@
231
});
232
233
};
234
-
235
- function isKong1xVersion(versionStr) {
236
- return versionStr >= "1.0.0" || versionStr.substring(0, 4) === "0.15"
237
- }
238
239
})();
0 commit comments