mirror of
https://github.com/Myzel394/kleckrelay-website.git
synced 2025-06-20 00:05:26 +02:00
fix: Add allowAliasDeletion to ServerSettings
This commit is contained in:
parent
6490aad2ed
commit
f854ab8a17
@ -48,6 +48,7 @@ export default function AliasDetailRoute(): ReactElement {
|
|||||||
<SimplePage
|
<SimplePage
|
||||||
title={t("routes.AliasDetailRoute.title")}
|
title={t("routes.AliasDetailRoute.title")}
|
||||||
actions={
|
actions={
|
||||||
|
serverSettings.allowAliasDeletion &&
|
||||||
query.data && (
|
query.data && (
|
||||||
<DeleteButton
|
<DeleteButton
|
||||||
onDelete={() => deleteAlias(aliasID!)}
|
onDelete={() => deleteAlias(aliasID!)}
|
||||||
|
@ -83,6 +83,7 @@ export interface ServerSettings {
|
|||||||
customAliasSuffixLength: number
|
customAliasSuffixLength: number
|
||||||
instanceSalt: string
|
instanceSalt: string
|
||||||
publicKey: string
|
publicKey: string
|
||||||
|
allowAliasDeletion: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Alias {
|
export interface Alias {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user