Notify policy updates to open-appsec container.

UI labels in log.
This commit is contained in:
Rami Winestock
2023-12-13 21:51:43 +02:00
parent dbd78e5e03
commit ce84a865f1
13 changed files with 102 additions and 120 deletions

View File

@@ -8,7 +8,6 @@ let TableBody = Mn.CollectionView.extend({
initialize: function (options) {
this.options = new Backbone.Model(options);
console.log("options: ", options);
// this.page = options.page;
// this.perPage = options.perPage;
this.updatePage();
@@ -20,22 +19,12 @@ let TableBody = Mn.CollectionView.extend({
let page = this.page || 1;
let models;
if (this.perPage && this.page) {
console.log('updatePage2');
models = this.collection.models.slice((page - 1) * perPage, page * perPage);
} else {
console.log('updatePage3');
models = this.collection.models;
}
this.collection.reset(models);
}
// updatePage: function () {
// let perPage = this.perPage || this.collection.length;
// let page = this.page || 1;
// let models = this.collection.models.slice((page - 1) * perPage, page * perPage);
// this.collection.reset(models);
// }
});
module.exports = Mn.View.extend({