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:
Thomas Lamprecht 2020-11-11 07:30:52 +01:00
parent ffaca016ad
commit be1d6cbcc6
2 changed files with 2 additions and 2 deletions

View File

@ -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;
},

View File

@ -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;
},