|
|
@@ -44,8 +44,6 @@ class LNAutoReplyEditViewController: LNViewController {
|
|
|
voiceEdit.isHidden = true
|
|
|
rejectView.isHidden = true
|
|
|
|
|
|
- commitButton.isEnabled = false
|
|
|
- commitButton.setBackgroundImage(nil, for: .normal)
|
|
|
titleLabel.text = .init(key: "B00114", num + 1)
|
|
|
|
|
|
switch item.type {
|
|
|
@@ -56,6 +54,9 @@ class LNAutoReplyEditViewController: LNViewController {
|
|
|
voiceEdit.isHidden = false
|
|
|
voiceEdit.update(item.voiceUrl, duration: item.voiceDuration)
|
|
|
}
|
|
|
+
|
|
|
+ commitButton.isEnabled = false
|
|
|
+ commitButton.setBackgroundImage(nil, for: .normal)
|
|
|
switch item.status {
|
|
|
case .pass:
|
|
|
commitButton.setTitle(.init(key: "A00240"), for: .normal)
|
|
|
@@ -106,7 +107,7 @@ extension LNAutoReplyEditViewController {
|
|
|
case .text:
|
|
|
textEdit.text.isEmpty == false && textEdit.text != curItem?.textContent
|
|
|
case .voice:
|
|
|
- voiceEdit.voiceInfo.0 != nil && voiceEdit.voiceInfo.1 > 0
|
|
|
+ voiceEdit.voiceInfo.0 != nil && voiceEdit.voiceInfo.1 > 0 && voiceEdit.voiceInfo.0 != curItem?.voiceUrl
|
|
|
case nil:
|
|
|
false
|
|
|
}
|
|
|
@@ -222,7 +223,7 @@ extension LNAutoReplyEditViewController {
|
|
|
|
|
|
textEdit.delegate = self
|
|
|
textEdit.maxInput = 200
|
|
|
- textEdit.placeholderLabel.text = .init(key: "As long as I have fun, I can play any mode")
|
|
|
+ textEdit.placeholderLabel.text = .init(key: "B00126")
|
|
|
textEdit.snp.makeConstraints { make in
|
|
|
make.height.equalTo(150)
|
|
|
}
|
|
|
@@ -239,6 +240,7 @@ extension LNAutoReplyEditViewController {
|
|
|
rejectView.backgroundColor = .fill
|
|
|
|
|
|
let titleLabel = UILabel()
|
|
|
+ titleLabel.text = .init(key: "B00127")
|
|
|
titleLabel.font = .heading_h4
|
|
|
titleLabel.textColor = .text_5
|
|
|
rejectView.addSubview(titleLabel)
|