[Fix] Fixing inspector paging bugs

This commit is contained in:
Robert von Burg 2018-10-29 14:35:12 +01:00
parent 007a5f4ece
commit 6e1391bb24
3 changed files with 16 additions and 3 deletions

View File

@ -198,8 +198,10 @@
<template is="dom-if" if="[[object.version]]" restamp="true">
<dl class="g-dl">
<dt>CreatedAt</dt>
<dd>[[_formatDate(object.version.createdAt)]]</dd>
<dt>Created</dt>
<dd>[[_formatDate(object.version.created)]]</dd>
<dt>Updated</dt>
<dd>[[_formatDate(object.version.updated)]]</dd>
<dt>CreatedBy</dt>
<dd>[[object.version.createdBy]]</dd>
<dt>Deleted</dt>
@ -620,6 +622,7 @@
this._handleAjaxResponse = function (data) {
this.model = null;
this.model = data.detail.response;
this.reloadObject();
};
this.$.ajax.url = url;

View File

@ -346,12 +346,20 @@
},
selectType: function (type) {
var typeChanged = this.selectedType != type;
this.selectedType = type;
this.section = type == null ? 'typesSummary' : 'typeDetails';
this.objects = null;
console.log('Showing type ' + this.selectedType);
Strolch.setQueryParamValue('type', this.selectedType);
this.reloadTypeDetails();
if (this.selectedType == null) {
this.offset = 0;
} else {
if (typeChanged) {
this.offset = 0;
}
this.reloadTypeDetails();
}
},
_closeTypeDetails: function () {

View File

@ -410,6 +410,8 @@
this.dlgTitle = 'Import done';
this.dlgText = data.detail.response.msg;
this.$.dlg.open();
this.reloadRealms();
};
this.$.ajax.url = this.basePath + 'rest/strolch/inspector/' + this.selectedRealm + '/import';