From bdc17c869796a6af9d8a73ba8d81c6579d493fa1 Mon Sep 17 00:00:00 2001 From: moonheart Date: Wed, 10 Jan 2024 23:14:48 +0800 Subject: [PATCH] add restore to default button in cron config and cron help link --- .../Components/Settings/AutoJobCron.razor | 43 ++++++++++++++----- 1 file changed, 32 insertions(+), 11 deletions(-) diff --git a/MementoMori.BlazorShared/Components/Settings/AutoJobCron.razor b/MementoMori.BlazorShared/Components/Settings/AutoJobCron.razor index e5b5d45..ca823ff 100644 --- a/MementoMori.BlazorShared/Components/Settings/AutoJobCron.razor +++ b/MementoMori.BlazorShared/Components/Settings/AutoJobCron.razor @@ -10,23 +10,44 @@ @ResourceStrings.AutoJobCrons (Global) + + @ResourceStrings.CronExpression + - - - - - - - - - - + + + + + + + + + + - @code { + + GameConfig.AutoJobModel defaultValue = new(); + public string AutoJob__DailyJobCron { get => WritableGameConfig.Value.AutoJob.DailyJobCron;