feat(admin): delete client

This commit is contained in:
FoskyM 2023-10-01 17:13:49 +08:00
parent 6c537e4b80
commit 8e8f49ae87
No known key found for this signature in database
GPG key ID: 42C0ED6994AD7E9C
3 changed files with 1 additions and 7 deletions

BIN
js/dist/admin.js generated vendored

Binary file not shown.

BIN
js/dist/admin.js.map generated vendored

Binary file not shown.

View file

@ -54,9 +54,9 @@ export default class ClientsPage extends Page {
className: 'Button Button--icon',
icon: 'fas fa-times',
onclick: () => {
this.clients[index].delete();
this.clients.splice(index, 1);
// this.setting(settingName)(JSON.stringify(reasons));
},
})),
])),
@ -72,12 +72,6 @@ export default class ClientsPage extends Page {
client_id: client_id,
client_secret: client_secret,
}).then(this.clients.push(client));
// this.clients.push(Client.build({
//
// }));
// this.setting(settingName)(JSON.stringify(reasons));
},
}, app.translator.trans(this.translationPrefix + 'add_button')))),
]),