fix: Add allowAliasDeletion to ServerSettings

This commit is contained in:
Myzel394 2023-02-14 21:04:42 +01:00
parent 6490aad2ed
commit f854ab8a17
2 changed files with 2 additions and 0 deletions

View File

@ -48,6 +48,7 @@ export default function AliasDetailRoute(): ReactElement {
<SimplePage
title={t("routes.AliasDetailRoute.title")}
actions={
serverSettings.allowAliasDeletion &&
query.data && (
<DeleteButton
onDelete={() => deleteAlias(aliasID!)}

View File

@ -83,6 +83,7 @@ export interface ServerSettings {
customAliasSuffixLength: number
instanceSalt: string
publicKey: string
allowAliasDeletion: boolean
}
export interface Alias {