Skip to content

Commit

Permalink
Merge pull request #136 from querqy/duplicate_rule
Browse files Browse the repository at this point in the history
enable rule duplication in the same collection
  • Loading branch information
pbartusch authored Feb 8, 2024
2 parents b81399d + 6397fce commit ec38e1f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import com.typesafe.sbt.GitBranchPrompt

name := "search-management-ui"
version := "4.0.4"
version := "4.0.5"
maintainer := "Contact productful.io <[email protected]>"

scalaVersion := "2.12.17"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ <h4 class="modal-title" id="modal-basic-title">{{ title }}</h4>
<div class="modal-footer btn-toolbar">
<button class="btn btn-success" type="button"
(click)="ok()"
[disabled]="selectedSolrIndexId === solrService.currentSolrIndexId"
>
{{ okLabel }}
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,11 @@ export class RulesListComponent implements OnChanges {
event.stopPropagation();
const copyCallback = (targetSolrIndexId: string) =>
this.ruleManagementService
.addNewRuleItemCopyFromSearchInput(id, targetSolrIndexId)
.then(() => this.showSuccessMsg.emit("Copied Rule management item"))
.catch(error => this.showErrorMsg.emit(error.error.message));
.addNewRuleItemCopyFromSearchInput(id, targetSolrIndexId)
// refresh list if a rule was copied within our current rule collection
.then(() => this.currentSolrIndexId == targetSolrIndexId ? this.refreshItemsInList() : Promise.resolve())
.then(() => this.showSuccessMsg.emit("Copied Rule management item"))
.catch(error => this.showErrorMsg.emit(error.error.message));

this.openCopyConfirmModal.emit({ copyCallback });
}
Expand Down

0 comments on commit ec38e1f

Please sign in to comment.