Skip to content

Commit

Permalink
commits lightweight ko components for new core-search components, re #…
Browse files Browse the repository at this point in the history
  • Loading branch information
whatisgalen committed Apr 19, 2024
1 parent 2f6cf77 commit 7611866
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
20 changes: 20 additions & 0 deletions arches/app/media/js/views/components/search/core-search.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
define([
'jquery',
'knockout',
'arches',
], function($, ko, arches) {
const componentName = 'core-search';
const viewModel = BaseFilter.extend({
initialize: function(options) {
options.name = 'Core Search';
BaseFilter.prototype.initialize.call(this, options);
this.filter = true;
this.filters[componentName](this);
}
});

return ko.components.register(componentName, {
viewModel: viewModel,
template: '',
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
define([
'jquery',
'knockout',
'arches',
], function($, ko, arches) {
const componentName = 'localize-descriptors';
const viewModel = BaseFilter.extend({
initialize: function(options) {
options.name = 'Localize Result Descriptors';
BaseFilter.prototype.initialize.call(this, options);
this.filter = true;
this.filters[componentName](this);
}
});

return ko.components.register(componentName, {
viewModel: viewModel,
template: '',
});
});

0 comments on commit 7611866

Please sign in to comment.