Skip to content

Commit 333453c

Browse files
committed
feat(ui): check project type
1 parent e8b12c5 commit 333453c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

web/src/components/ProjectForm.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<v-text-field
1515
v-model="item.name"
16-
:label="$t('projectName')"
16+
:label="$t(projectNameTitle)"
1717
:rules="[v => !!v || $t('project_name_required')]"
1818
required
1919
:disabled="formSaving"
@@ -23,6 +23,7 @@
2323
></v-text-field>
2424

2525
<v-text-field
26+
v-if="item.type === ''"
2627
v-model.number="item.max_parallel_tasks"
2728
:label="$t('maxNumberOfParallelTasksOptional')"
2829
:disabled="formSaving"
@@ -38,6 +39,7 @@
3839
></v-text-field>
3940

4041
<v-text-field
42+
v-if="item.type === ''"
4143
v-model="item.alert_chat"
4244
:label="$t('telegramChatIdOptional')"
4345
:disabled="formSaving"
@@ -47,6 +49,7 @@
4749
></v-text-field>
4850

4951
<v-checkbox
52+
v-if="item.type === ''"
5053
class="mt-0"
5154
v-model="item.alert"
5255
:label="$t('allowAlertsForThisProject')"
@@ -69,6 +72,10 @@ import ItemFormBase from '@/components/ItemFormBase';
6972
export default {
7073
mixins: [ItemFormBase],
7174
props: {
75+
projectNameTitle: {
76+
type: String,
77+
default: 'projectName',
78+
},
7279
},
7380
methods: {
7481
getItemsUrl() {

0 commit comments

Comments
 (0)