Skip to content

Commit aa32e09

Browse files
author
Erwin Dondorp
committed
time representation changes when fraction_digits changes, closes #866
1 parent bbe91f5 commit aa32e09

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

saltgui/static/scripts/panels/Options.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,18 @@ export class OptionsPanel extends Panel {
331331
td.innerText = this._parseAndFormat(name, value);
332332
}
333333

334+
if (category === "session" && name === "start") {
335+
this.updateExpiresInterval = window.setInterval(() => {
336+
// just redo the whole text-block
337+
// nr-digits may have changed
338+
OptionsPanel._enhanceSessionStart(td, value, sessionStart);
339+
}, 1000);
340+
}
334341
if (category === "session" && name === "expire") {
335342
this.updateExpiresInterval = window.setInterval(() => {
336343
// just redo the whole text-block
344+
// expiry interval always changes
345+
// nr-digits may also have changed
337346
OptionsPanel._enhanceSessionExpire(td, value, sessionStart);
338347
}, 1000);
339348
}

0 commit comments

Comments
 (0)