[Fix] Fixing inspector paging bugs
This commit is contained in:
parent
007a5f4ece
commit
6e1391bb24
|
@ -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;
|
||||
|
|
|
@ -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 () {
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue