specific error for lack of permissions when trying to delete an alias
This commit is contained in:
parent
3baaaaab07
commit
cccf7cd07f
2 changed files with 12 additions and 5 deletions
|
@ -243,12 +243,18 @@ export default class AliasSettings extends React.Component {
|
||||||
}
|
}
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
Modal.createTrackedDialog('Error removing alias', '', ErrorDialog, {
|
let description;
|
||||||
title: _t("Error removing alias"),
|
if (err.errcode === "M_FORBIDDEN") {
|
||||||
description: _t(
|
description = _t("You don't have permission to delete the alias.");
|
||||||
|
} else {
|
||||||
|
description = _t(
|
||||||
"There was an error removing that alias. It may no longer exist or a temporary " +
|
"There was an error removing that alias. It may no longer exist or a temporary " +
|
||||||
"error occurred.",
|
"error occurred.",
|
||||||
),
|
);
|
||||||
|
}
|
||||||
|
Modal.createTrackedDialog('Error removing alias', '', ErrorDialog, {
|
||||||
|
title: _t("Error removing alias"),
|
||||||
|
description,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
@ -1150,8 +1150,9 @@
|
||||||
"There was an error updating the room's alternative addresses. It may not be allowed by the server or a temporary failure occurred.": "There was an error updating the room's alternative addresses. It may not be allowed by the server or a temporary failure occurred.",
|
"There was an error updating the room's alternative addresses. It may not be allowed by the server or a temporary failure occurred.": "There was an error updating the room's alternative addresses. It may not be allowed by the server or a temporary failure occurred.",
|
||||||
"Error creating alias": "Error creating alias",
|
"Error creating alias": "Error creating alias",
|
||||||
"There was an error creating that alias. It may not be allowed by the server or a temporary failure occurred.": "There was an error creating that alias. It may not be allowed by the server or a temporary failure occurred.",
|
"There was an error creating that alias. It may not be allowed by the server or a temporary failure occurred.": "There was an error creating that alias. It may not be allowed by the server or a temporary failure occurred.",
|
||||||
"Error removing alias": "Error removing alias",
|
"You don't have permission to delete the alias.": "You don't have permission to delete the alias.",
|
||||||
"There was an error removing that alias. It may no longer exist or a temporary error occurred.": "There was an error removing that alias. It may no longer exist or a temporary error occurred.",
|
"There was an error removing that alias. It may no longer exist or a temporary error occurred.": "There was an error removing that alias. It may no longer exist or a temporary error occurred.",
|
||||||
|
"Error removing alias": "Error removing alias",
|
||||||
"Main address": "Main address",
|
"Main address": "Main address",
|
||||||
"not specified": "not specified",
|
"not specified": "not specified",
|
||||||
"This room has no local addresses": "This room has no local addresses",
|
"This room has no local addresses": "This room has no local addresses",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue