chore(record)
This commit is contained in:
@@ -119,6 +119,12 @@ export function RecordForm({
|
||||
return recordDomains[0].domain_name;
|
||||
}, [recordDomains, initData?.zone_name]);
|
||||
|
||||
useEffect(() => {
|
||||
if (validDefaultDomain) {
|
||||
setCurrentZoneName(validDefaultDomain);
|
||||
}
|
||||
}, [validDefaultDomain]);
|
||||
|
||||
useEffect(() => {
|
||||
if (recordDomains && recordDomains.length > 0) {
|
||||
setAllowedRecordTypes(
|
||||
@@ -547,18 +553,20 @@ export function RecordForm({
|
||||
)}
|
||||
</Button>
|
||||
)}
|
||||
<Button
|
||||
type="submit"
|
||||
variant="blue"
|
||||
disabled={isPending}
|
||||
className="w-[80px] shrink-0 px-0"
|
||||
>
|
||||
{isPending ? (
|
||||
<Icons.spinner className="size-4 animate-spin" />
|
||||
) : (
|
||||
<p>{type === "edit" ? t("Update") : t("Save")}</p>
|
||||
)}
|
||||
</Button>
|
||||
{initData?.active !== 3 && (
|
||||
<Button
|
||||
type="submit"
|
||||
variant="blue"
|
||||
disabled={isPending}
|
||||
className="w-[80px] shrink-0 px-0"
|
||||
>
|
||||
{isPending ? (
|
||||
<Icons.spinner className="size-4 animate-spin" />
|
||||
) : (
|
||||
<p>{type === "edit" ? t("Update") : t("Save")}</p>
|
||||
)}
|
||||
</Button>
|
||||
)}
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -242,7 +242,9 @@ export async function getUserRecordByTypeNameContent(
|
||||
type,
|
||||
// content,
|
||||
name,
|
||||
// active,
|
||||
active: {
|
||||
not: 3,
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
+1
-1
@@ -236,7 +236,7 @@ export function applyRecordEmailHtml({
|
||||
</table>
|
||||
|
||||
<div class="button-container">
|
||||
<a href="${appUrl}/admin/domains" class="button">Review Record</a>
|
||||
<a href="${appUrl}/admin/records" class="button">Review Record</a>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user