Update os.ts
This commit is contained in:
parent
0f7ee33201
commit
e2c9043179
|
@ -73,10 +73,6 @@ export const apiWithDialog = (<E extends keyof Misskey.Endpoints, P extends Miss
|
||||||
} else if (err.code === 'ROLE_PERMISSION_DENIED') {
|
} else if (err.code === 'ROLE_PERMISSION_DENIED') {
|
||||||
title = i18n.ts.permissionDeniedError;
|
title = i18n.ts.permissionDeniedError;
|
||||||
text = i18n.ts.permissionDeniedErrorDescription;
|
text = i18n.ts.permissionDeniedErrorDescription;
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
||||||
} else if (customErrors && customErrors[err.code] != null) {
|
|
||||||
title = customErrors[err.code].title;
|
|
||||||
text = customErrors[err.code].text;
|
|
||||||
} else if (err.code.startsWith('TOO_MANY')) {
|
} else if (err.code.startsWith('TOO_MANY')) {
|
||||||
title = i18n.ts.youCannotCreateAnymore;
|
title = i18n.ts.youCannotCreateAnymore;
|
||||||
text = `${i18n.ts.error}: ${err.id}`;
|
text = `${i18n.ts.error}: ${err.id}`;
|
||||||
|
|
Loading…
Reference in New Issue