From 04bbbdae4d1632aab2998aec898e383f30902ef0 Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Mon, 17 Apr 2023 20:55:56 +0700 Subject: [PATCH] rename --- files/vestasync.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/files/vestasync.js b/files/vestasync.js index 9119d10..9bb0dd8 100644 --- a/files/vestasync.js +++ b/files/vestasync.js @@ -1,12 +1,12 @@ defineVirtualDevice("vestasync", { title: "Vestasync", cells: { - "Last push": { + last_push: { type: "text", value: "Update...", title: "Last push" }, - "Current commit": { + last_commit: { type: "text", value: "Update...", title: "Last commit hash" @@ -56,7 +56,7 @@ function _update_vestasync() { } else { human_readable_time = "just now"; } - dev.vestasync["Last push"] = human_readable_time; + dev.vestasync.last_push = human_readable_time; } } }); @@ -65,7 +65,7 @@ function _update_vestasync() { exitCallback: function (exitCode, capturedOutput) { if (exitCode === 0) { var shortenedCommit = capturedOutput.trim().substring(0, 10); - dev.vestasync["Current commit"] = shortenedCommit; + dev.vestasync.last_commit = shortenedCommit; } } });