fix css for remove alias/implication

This commit is contained in:
r888888888
2017-04-14 13:23:50 -07:00
parent 38a2298de9
commit f5ea5c36cb

View File

@@ -10,10 +10,10 @@ module BulkUpdateRequestsHelper
TagImplication.where(antecedent_name: antecedent, consequent_name: consequent, status: %w(active processing queued)).exists?
when :remove_alias
TagAlias.where(antecedent_name: antecedent, consequent_name: consequent, status: "deleted").exists?
TagAlias.where(antecedent_name: antecedent, consequent_name: consequent, status: "deleted").exists? || !TagAlias.where(antecedent_name: antecedent, consequent_name: consequent).exists?
when :remove_implication
TagImplication.where(antecedent_name: antecedent, consequent_name: consequent, status: "deleted").exists?
TagImplication.where(antecedent_name: antecedent, consequent_name: consequent, status: "deleted").exists? || !TagImplication.where(antecedent_name: antecedent, consequent_name: consequent).exists?
when :mass_update
!Post.raw_tag_match(antecedent).exists?