Fix: External storage - exception thrown for the handler whenSelectAuthMechanism

Signed-off-by: Vincent Handfield <vincent@accestech.com>
This commit is contained in:
Vincent Handfield 2022-07-07 12:19:03 -04:00 committed by Simon L
parent ed2b28b60d
commit da83464459

View file

@ -698,7 +698,7 @@ MountConfigListView.prototype = _.extend({
* Trigger callback for all existing configurations
*/
whenSelectBackend: function(callback) {
this.$el.find('tbody tr:not(#addMountPoint)').each(function(i, tr) {
this.$el.find('tbody tr:not(#addMountPoint):not(.externalStorageLoading)').each(function(i, tr) {
var backend = $(tr).find('.backend').data('identifier');
callback($(tr), backend);
});
@ -706,7 +706,7 @@ MountConfigListView.prototype = _.extend({
},
whenSelectAuthMechanism: function(callback) {
var self = this;
this.$el.find('tbody tr:not(#addMountPoint)').each(function(i, tr) {
this.$el.find('tbody tr:not(#addMountPoint):not(.externalStorageLoading)').each(function(i, tr) {
var authMechanism = $(tr).find('.selectAuthMechanism').val();
callback($(tr), authMechanism, self._allAuthMechanisms[authMechanism]['scheme']);
});