[DE PE SSE mobile] Fix Bug 54632 (#1454)
This commit is contained in:
parent
711066e6d3
commit
a794193cb3
|
@ -689,7 +689,7 @@ class MainController extends Component {
|
|||
const { t } = this.props;
|
||||
|
||||
if (found) {
|
||||
f7.dialog.alert(null, !(found - replaced > 0) ? Common.Utils.String.format(t('Main.textReplaceSuccess'), replaced) : Common.Utils.String.format(t('Main.textReplaceSkipped'), found - replaced));
|
||||
f7.dialog.alert(null, !(found - replaced > 0) ? t('Main.textReplaceSuccess').replace(/\{0\}/, `${replaced}`) : t('Main.textReplaceSkipped').replace(/\{0\}/, `${found - replaced}`));
|
||||
} else {
|
||||
f7.dialog.alert(null, t('Main.textNoTextFound'));
|
||||
}
|
||||
|
|
|
@ -422,7 +422,7 @@ class MainController extends Component {
|
|||
const { t } = this.props;
|
||||
|
||||
if (found) {
|
||||
f7.dialog.alert(null, !(found - replaced > 0) ? Common.Utils.String.format(t('Controller.Main.textReplaceSuccess'), replaced) : Common.Utils.String.format(t('Controller.Main.textReplaceSkipped'), found - replaced));
|
||||
f7.dialog.alert(null, !(found - replaced > 0) ? t('Controller.Main.textReplaceSuccess').replace(/\{0\}/, `${replaced}`) : t('Controller.Main.textReplaceSkipped').replace(/\{0\}/, `${found - replaced}`));
|
||||
} else {
|
||||
f7.dialog.alert(null, t('Controller.Main.textNoTextFound'));
|
||||
}
|
||||
|
|
|
@ -427,7 +427,7 @@ class MainController extends Component {
|
|||
const { t } = this.props;
|
||||
|
||||
if (this.api.isReplaceAll) {
|
||||
f7.dialog.alert(null, (found) ? ((!found - replaced) ? Common.Utils.String.format(t('Controller.Main.textReplaceSuccess'), replaced) : Common.Utils.String.format(t('Controller.Main.textReplaceSkipped'), found - replaced)) : t('Controller.Main.textNoTextFound'));
|
||||
f7.dialog.alert(null, (found) ? ((!found - replaced) ? t('Controller.Main.textReplaceSuccess').replace(/\{0\}/, `${replaced}`) : t('Controller.Main.textReplaceSkipped').replace(/\{0\}/, `${found - replaced}`)) : t('Controller.Main.textNoTextFound'));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue