Skip to content

Commit 20a99a2

Browse files
committed
fix(ui): cron -> empty type
1 parent d64f7b4 commit 20a99a2

File tree

4 files changed

+17
-9
lines changed

4 files changed

+17
-9
lines changed

api/system_info.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,9 @@ func (c *SystemInfoController) GetSystemInfo(w http.ResponseWriter, r *http.Requ
6060

6161
if err != nil {
6262
log.WithError(err).Error("Failed to get subscription plan")
63-
http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
64-
return
63+
err = nil
64+
//http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
65+
//return
6566
}
6667

6768
switch {
@@ -70,7 +71,9 @@ func (c *SystemInfoController) GetSystemInfo(w http.ResponseWriter, r *http.Requ
7071
plan = ""
7172
case err != nil:
7273
log.WithError(err).Error("Failed to get subscription plan")
73-
http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
74+
err = nil
75+
plan = ""
76+
//http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
7477
return
7578
default:
7679
plan = token.Plan

web/src/components/ScheduleForm.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -678,9 +678,9 @@ export default {
678678
},
679679
680680
afterLoadData() {
681-
if (!this.item.type) {
682-
this.item.type = this.item.run_at ? 'run_at' : 'cron';
683-
}
681+
// if (!this.item.type) {
682+
// this.item.type = this.item.run_at ? 'run_at' : '';
683+
// }
684684
685685
if (this.item.run_at) {
686686
this.setRunAtInputFromItem();

web/src/components/SubscriptionForm.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,19 @@
5555
label="Enter your PRO key"
5656
:rules="[(v) => !!v || $t('key_required')]"
5757
required
58-
:disabled="formSaving"
58+
:disabled="formSaving || item.managed_by_config"
5959
outlined
6060
dense
6161
></v-textarea>
6262

6363
<v-row>
6464
<v-col>
65-
<v-btn @click="save" style="width: 100%" color="success" :disabled="formSaving">
65+
<v-btn
66+
@click="save"
67+
style="width: 100%"
68+
color="success"
69+
:disabled="formSaving || item.managed_by_config"
70+
>
6671
<v-progress-circular
6772
v-if="formSaving"
6873
indeterminate

web/src/views/project/Schedule.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
<v-list>
5858
<v-list-item
5959
link
60-
@click="editSchedule('new', 'cron');"
60+
@click="editSchedule('new', '');"
6161
>
6262
<v-list-item-icon>
6363
<v-icon>mdi-calendar-sync</v-icon>

0 commit comments

Comments
 (0)