mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 18:39:22 +08:00
client: format dates for the ETAPI tokens table
This commit is contained in:
parent
56b6dae447
commit
88376e1158
@ -1,8 +1,9 @@
|
||||
import { formatDate } from "../../../utils/formatters.js"
|
||||
import { t } from "../../../services/i18n.js";
|
||||
import server from "../../../services/server.js";
|
||||
import dialogService from "../../../services/dialog.js";
|
||||
import toastService from "../../../services/toast.js";
|
||||
import OptionsWidget from "./options_widget.js";
|
||||
import server from "../../../services/server.js";
|
||||
import toastService from "../../../services/toast.js";
|
||||
|
||||
const TPL = `
|
||||
<div class="options-section">
|
||||
@ -95,7 +96,7 @@ export default class EtapiOptions extends OptionsWidget {
|
||||
$tokensTableBody.append(
|
||||
$("<tr>")
|
||||
.append($("<td>").text(token.name))
|
||||
.append($("<td>").text(token.utcDateCreated))
|
||||
.append($("<td>").text(formatDate(new Date(token.utcDateCreated))))
|
||||
.append($("<td>").append(
|
||||
$(`<span class="bx bx-pen token-table-button" title="${t("etapi.rename_token")}"></span>`)
|
||||
.on("click", () => this.renameToken(token.etapiTokenId, token.name)),
|
||||
|
Loading…
x
Reference in New Issue
Block a user