-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MOL-879: subscriptions admin list should be searchable (#526)
* Add subscriptions to search list * Update search bar * Update search * Add sidebar and refresh button * Add icon compatibility * Search compatibility * Make status sortable * Remove eslint line that prevents building * Update snippets * Fix eslint * fix snippetcheck
- Loading branch information
1 parent
7ce939f
commit 4bd58ca
Showing
13 changed files
with
138 additions
and
11 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
src/Resources/app/administration/src/extension/structure/sw-search-bar-item/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import template from './sw-search-bar-item.html.twig'; | ||
|
||
// eslint-disable-next-line no-undef | ||
Shopware.Component.override('sw-search-bar-item', { | ||
template, | ||
}) |
17 changes: 17 additions & 0 deletions
17
...pp/administration/src/extension/structure/sw-search-bar-item/sw-search-bar-item.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{% block sw_search_bar_item_cms_page %} | ||
{% parent %} | ||
|
||
<router-link v-else-if="type === 'mollie_subscription'" | ||
:to="{ name: 'mollie.payments.subscription', params: { id: item.id } }" | ||
ref="routerLink" | ||
class="sw-search-bar-item__link"> | ||
{% block sw_search_bar_item_mollie_subscription_label %} | ||
<span class="sw-search-bar-item__label"> | ||
<sw-highlight-text :searchTerm="searchTerm" | ||
:text="item.description"> | ||
</sw-highlight-text> | ||
</span> | ||
{% endblock %} | ||
</router-link> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/Resources/app/administration/src/module/mollie-payments/default-search-configuration.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
const defaultSearchConfiguration = { | ||
_searchable: true, | ||
description: { | ||
_searchable: true, | ||
_score: 500, | ||
}, | ||
}; | ||
|
||
export default defaultSearchConfiguration; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters