mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-17 07:12:30 +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 { t } from "../../../services/i18n.js";
|
||||||
import server from "../../../services/server.js";
|
|
||||||
import dialogService from "../../../services/dialog.js";
|
import dialogService from "../../../services/dialog.js";
|
||||||
import toastService from "../../../services/toast.js";
|
|
||||||
import OptionsWidget from "./options_widget.js";
|
import OptionsWidget from "./options_widget.js";
|
||||||
|
import server from "../../../services/server.js";
|
||||||
|
import toastService from "../../../services/toast.js";
|
||||||
|
|
||||||
const TPL = `
|
const TPL = `
|
||||||
<div class="options-section">
|
<div class="options-section">
|
||||||
@ -95,7 +96,7 @@ export default class EtapiOptions extends OptionsWidget {
|
|||||||
$tokensTableBody.append(
|
$tokensTableBody.append(
|
||||||
$("<tr>")
|
$("<tr>")
|
||||||
.append($("<td>").text(token.name))
|
.append($("<td>").text(token.name))
|
||||||
.append($("<td>").text(token.utcDateCreated))
|
.append($("<td>").text(formatDate(new Date(token.utcDateCreated))))
|
||||||
.append($("<td>").append(
|
.append($("<td>").append(
|
||||||
$(`<span class="bx bx-pen token-table-button" title="${t("etapi.rename_token")}"></span>`)
|
$(`<span class="bx bx-pen token-table-button" title="${t("etapi.rename_token")}"></span>`)
|
||||||
.on("click", () => this.renameToken(token.etapiTokenId, token.name)),
|
.on("click", () => this.renameToken(token.etapiTokenId, token.name)),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user