ui: fix usage of findRecord

findRecord does not match exactly, but only at the beginning and
case insensitive, by default. Change all calls to be case sensitive
and an exactmatch (we never want the default behaviour afaics).

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2020-11-26 09:27:31 +01:00 committed by Dietmar Maurer
parent 96f35520a0
commit 781106f8c5
1 changed files with 2 additions and 1 deletions

View File

@ -266,7 +266,8 @@ Ext.define('PBS.DataStoreSummary', {
}, },
failure: function(response) { failure: function(response) {
// fallback if e.g. we have no permissions to the config // fallback if e.g. we have no permissions to the config
let rec = Ext.getStore('pbs-datastore-list').findRecord('store', me.datastore); let rec = Ext.getStore('pbs-datastore-list')
.findRecord('store', me.datastore, 0, false, true, true);
if (rec) { if (rec) {
me.down('pbsDataStoreNotes').setNotes(rec.data.comment || ""); me.down('pbsDataStoreNotes').setNotes(rec.data.comment || "");
} }