mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
Fix small TtlPIcker2 bug (#17376)
* fix * add changelog * wrong file name for changelog * update from what core responded with re: type duration
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
* @param helperTextDisabled="Allow tokens to be used indefinitely" {String} - This helper text is shown under the label when the toggle is switched off
|
||||
* @param helperTextEnabled="Disable the use of the token after" {String} - This helper text is shown under the label when the toggle is switched on
|
||||
* @param description="Longer description about this value, what it does, and why it is useful. Shows up in tooltip next to helpertext"
|
||||
* @param time=30 {Number} - The time (in the default units) which will be adjustable by the user of the form
|
||||
* @param time='' {Number} - The time (in the default units) which will be adjustable by the user of the form
|
||||
* @param unit="s" {String} - This is the unit key which will show by default on the form. Can be one of `s` (seconds), `m` (minutes), `h` (hours), `d` (days)
|
||||
* @param recalculationTimeout=5000 {Number} - This is the time, in milliseconds, that `recalculateSeconds` will be be true after time is updated
|
||||
* @param initialValue=null {String} - This is the value set initially (particularly from a string like '30h')
|
||||
@@ -50,7 +50,7 @@ export default TtlForm.extend({
|
||||
helperTextDisabled: 'Allow tokens to be used indefinitely',
|
||||
helperTextEnabled: 'Disable the use of the token after',
|
||||
description: '',
|
||||
time: 30,
|
||||
time: '', // if defaultValue is NOT set, then do not display a defaultValue.
|
||||
unit: 's',
|
||||
initialValue: null,
|
||||
changeOnInit: false,
|
||||
@@ -62,6 +62,7 @@ export default TtlForm.extend({
|
||||
const enable = this.initialEnabled;
|
||||
const changeOnInit = this.changeOnInit;
|
||||
// if initial value is unset use params passed in as defaults
|
||||
// and if no defaultValue is passed in display no time
|
||||
if (!value && value !== 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user