fix #2747: ui: API token create: always reset base submit URL

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-05-18 18:50:38 +02:00
parent 2abb52cb02
commit fbfe1e39d4

View File

@ -18,6 +18,7 @@ Ext.define('PVE.dc.TokenEdit', {
onGetValues: function(values) {
let me = this;
let win = me.up('pveDcTokenEdit');
win.url = '/api2/extjs/access/users/';
if (win.isCreate) {
let uid = encodeURIComponent(values.userid);
let tid = encodeURIComponent(values.tokenid);