Merge branch 'master' into wait-for-analaytics-e2e
This commit is contained in:
commit
1cb5279e13
@ -4,11 +4,16 @@
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">
|
||||
{{ $t("Badge Generator", [monitor.name]) }}
|
||||
{{ $t("Badge Link Generator", [monitor.name]) }}
|
||||
</h5>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal" :aria-label="$t('Close')" />
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<i18n-t keypath="Badge Link Generator Helptext" tag="p" class="form-text mb-3">
|
||||
<template #documentation>
|
||||
<a href="https://github.com/louislam/uptime-kuma/wiki/Badge" target="_blank" rel="noopener noreferrer">{{ $t("documentation") }}</a>
|
||||
</template>
|
||||
</i18n-t>
|
||||
<div class="mb-3">
|
||||
<label for="type" class="form-label">{{ $t("Badge Type") }}</label>
|
||||
<select id="type" v-model="badge.type" class="form-select">
|
||||
@ -31,10 +31,10 @@
|
||||
|
||||
<button
|
||||
class="btn btn-primary btn-add-group me-2"
|
||||
@click="$refs.badgeGeneratorDialog.show(monitor.id, monitor.name)"
|
||||
@click="$refs.badgeLinkGeneratorDialog.show(monitor.id, monitor.name)"
|
||||
>
|
||||
<font-awesome-icon icon="certificate" />
|
||||
{{ $t("Open Badge Generator") }}
|
||||
{{ $t("Open Badge Link Generator") }}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@ -46,16 +46,16 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<BadgeGeneratorDialog ref="badgeGeneratorDialog" />
|
||||
<BadgeLinkGeneratorDialog ref="badgeLinkGeneratorDialog" />
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Modal } from "bootstrap";
|
||||
import BadgeGeneratorDialog from "./BadgeGeneratorDialog.vue";
|
||||
import BadgeLinkGeneratorDialog from "./BadgeLinkGeneratorDialog.vue";
|
||||
|
||||
export default {
|
||||
components: {
|
||||
BadgeGeneratorDialog
|
||||
BadgeLinkGeneratorDialog
|
||||
},
|
||||
props: {},
|
||||
emits: [],
|
||||
|
||||
@ -909,8 +909,9 @@
|
||||
"Monitor Setting": "{0}'s Monitor Setting",
|
||||
"Show Clickable Link": "Show Clickable Link",
|
||||
"Show Clickable Link Description": "If checked everyone who have access to this status page can have access to monitor URL.",
|
||||
"Open Badge Generator": "Open Badge Generator",
|
||||
"Badge Generator": "{0}'s Badge Generator",
|
||||
"Open Badge Link Generator": "Open Badge Link Generator",
|
||||
"Badge Link Generator": "{0}'s Badge Link Generator",
|
||||
"Badge Link Generator Helptext": "Badge links are available for all monitors assigned to public status pages. For more information, please see the {documentation}.",
|
||||
"Badge Type": "Badge Type",
|
||||
"Badge Duration (in hours)": "Badge Duration (in hours)",
|
||||
"Badge Label": "Badge Label",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user