web/user: fix device type for static tokens
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
		@ -138,10 +138,21 @@ export class MFADevicesPage extends Table<Device> {
 | 
			
		||||
        </ak-forms-delete-bulk>`;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    deviceTypeName(device: Device): string {
 | 
			
		||||
        switch (device.type) {
 | 
			
		||||
            case "otp_static.StaticDevice":
 | 
			
		||||
                return t`Static tokens`;
 | 
			
		||||
            case "otp_totp.TOTPDevice":
 | 
			
		||||
                return t`TOTP Device`;
 | 
			
		||||
            default:
 | 
			
		||||
                return device.verboseName;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    row(item: Device): TemplateResult[] {
 | 
			
		||||
        return [
 | 
			
		||||
            html`${item.name}`,
 | 
			
		||||
            html`${item.verboseName}`,
 | 
			
		||||
            html`${this.deviceTypeName(item)}`,
 | 
			
		||||
            html`
 | 
			
		||||
                <ak-forms-modal>
 | 
			
		||||
                    <span slot="submit">${t`Update`}</span>
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user