ui: shorten automatic ID length a bit
Without hyphens, we had 20 hex digits, so ~80 bit which is probably overkill. Use 12 (13 with hyphen), this is still 48 bit. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
ffaca016ad
commit
be1d6cbcc6
@ -123,7 +123,7 @@ Ext.define('PBS.window.SyncJobEdit', {
|
||||
let me = this;
|
||||
|
||||
if (!values.id && me.up('pbsSyncJobEdit').isCreate) {
|
||||
values.id = 'auto-' + Ext.data.identifier.Uuid.Global.generate().slice(0, 23);
|
||||
values.id = 's-' + Ext.data.identifier.Uuid.Global.generate().slice(0, 13);
|
||||
}
|
||||
return values;
|
||||
},
|
||||
|
@ -40,7 +40,7 @@ Ext.define('PBS.window.VerifyJobEdit', {
|
||||
let me = this;
|
||||
|
||||
if (!values.id && me.up('pbsVerifyJobEdit').isCreate) {
|
||||
values.id = 'auto-' + Ext.data.identifier.Uuid.Global.generate().slice(0, 23);
|
||||
values.id = 'v-' + Ext.data.identifier.Uuid.Global.generate().slice(0, 13);
|
||||
}
|
||||
return values;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user