mirror of
https://github.com/getrebuild/rebuild.git
synced 2024-09-20 15:35:55 +08:00
better: trigger when
This commit is contained in:
parent
09fd443f1c
commit
87f41e7942
|
@ -41,7 +41,7 @@ class ContentAutoApproval extends ActionContentSpec {
|
|||
.find('.custom-control-input')
|
||||
.each(function () {
|
||||
const v = ~~$(this).val()
|
||||
if (v !== 1 && v !== 4) $(this).attr('disabled', true)
|
||||
if (!(v === 1 || v === 4 || v === 512)) $(this).attr('disabled', true)
|
||||
})
|
||||
|
||||
const content = this.props.content || {}
|
||||
|
|
|
@ -60,7 +60,7 @@ class ContentAutoAssign extends ActionContentSpec {
|
|||
.find('.custom-control-input')
|
||||
.each(function () {
|
||||
const v = ~~$(this).val()
|
||||
if (!(v === 1 || v === 4 || v >= 128)) $(this).attr('disabled', true)
|
||||
if (v === 2 || v === 16) $(this).attr('disabled', true)
|
||||
})
|
||||
|
||||
const content = this.props.content || {}
|
||||
|
|
|
@ -47,7 +47,7 @@ class ContentAutoShare extends ActionContentSpec {
|
|||
.find('.custom-control-input')
|
||||
.each(function () {
|
||||
const v = ~~$(this).val()
|
||||
if (!(v === 1 || v === 4 || v >= 128)) $(this).attr('disabled', true)
|
||||
if (v === 2 || v === 32 || v === 64) $(this).attr('disabled', true)
|
||||
})
|
||||
|
||||
const content = this.props.content || {}
|
||||
|
|
Loading…
Reference in a new issue