Merge pull request #1108 from trogper/push-status-param

Add status parameter to push monitor
This commit is contained in:
Louis Lam
2022-04-29 00:12:44 +08:00
committed by GitHub
2 changed files with 5 additions and 4 deletions

View File

@@ -56,7 +56,7 @@
<CopyableInput id="push-url" v-model="pushURL" type="url" disabled="disabled" />
<div class="form-text">
{{ $t("needPushEvery", [monitor.interval]) }}<br />
{{ $t("pushOptionalParams", ["msg, ping"]) }}
{{ $t("pushOptionalParams", ["status, msg, ping"]) }}
</div>
</div>
@@ -421,7 +421,7 @@ export default {
},
pushURL() {
return this.$root.baseURL + "/api/push/" + this.monitor.pushToken + "?msg=OK&ping=";
return this.$root.baseURL + "/api/push/" + this.monitor.pushToken + "?status=true&msg=OK&ping=";
},
bodyPlaceholder() {