mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-01-18 18:38:07 +00:00
Merge branch 'master' into feature/timezones-package
This commit is contained in:
commit
a654e409df
1 changed files with 5 additions and 6 deletions
|
@ -120,11 +120,10 @@
|
||||||
</form>
|
</form>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<h2 class="mt-5 mb-2">
|
<div v-if="! settings.disableAuth" class="mt-5 mb-3">
|
||||||
|
<h2 class="mb-2">
|
||||||
{{ $t("Two Factor Authentication") }}
|
{{ $t("Two Factor Authentication") }}
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<div class="mb-3">
|
|
||||||
<button class="btn btn-primary me-2" type="button" @click="$refs.TwoFADialog.show()">{{ $t("2FA Settings") }}</button>
|
<button class="btn btn-primary me-2" type="button" @click="$refs.TwoFADialog.show()">{{ $t("2FA Settings") }}</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -396,7 +395,7 @@ export default {
|
||||||
}
|
}
|
||||||
exportData = JSON.stringify(exportData, null, 4);
|
exportData = JSON.stringify(exportData, null, 4);
|
||||||
let downloadItem = document.createElement("a");
|
let downloadItem = document.createElement("a");
|
||||||
downloadItem.setAttribute("href", "data:application/json;charset=utf-8," + encodeURI(exportData));
|
downloadItem.setAttribute("href", "data:application/json;charset=utf-8," + encodeURIComponent(exportData));
|
||||||
downloadItem.setAttribute("download", fileName);
|
downloadItem.setAttribute("download", fileName);
|
||||||
downloadItem.click();
|
downloadItem.click();
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue