Skip to content

Commit

Permalink
fix: Apply edit
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanzhi33 committed Mar 24, 2024
1 parent 12472c5 commit 5be6c6e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/components/ApplyEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const { t } = useI18n({
description: "备注",
descriptionPlaceholder: "如有其他需求请在此处填写",
apply: "申请",
cancel: "取消",
applying: "正在前往 GitHub,请稍等..."
},
en: {
Expand All @@ -53,6 +54,7 @@ const { t } = useI18n({
description: "Description",
descriptionPlaceholder: "Other requirements or descriptions",
apply: "Apply",
cancel: "Cancel",
applying: "Redirecting to GitHub, please wait..."
}
}
Expand Down Expand Up @@ -104,13 +106,13 @@ const submit = async () => {
<label for="websiteLink">{{ t('websiteLink') }}:</label>
<input type="url" class="form-control mb-3" id="websiteLink" :value="url" readonly>
<label for="oldIssue">{{ t('oldIssue') }}:</label>
<input type="text" class="form-control mb-3" id="oldIssue" placeholder="{{ t('issuesIdPlaceholder') }}" v-model="oldIssue">
<input type="text" class="form-control mb-3" id="oldIssue" :placeholder="t('issuesIdPlaceholder')" v-model="oldIssue">
<label for="newName">{{ t('newName') }}:</label>
<input type="text" class="form-control mb-3" id="newName" placeholder="{{ t('newNamePlaceholder') }}" v-model="newName">
<input type="text" class="form-control mb-3" id="newName" :placeholder="t('newNamePlaceholder')" v-model="newName">
<label for="newLink">{{ t('newLink') }}:</label>
<input type="url" class="form-control mb-3" id="newLink" placeholder="{{ t('newLinkPlaceholder') }}" v-model="newLink">
<input type="url" class="form-control mb-3" id="newLink" :placeholder="t('newLinkPlaceholder')" v-model="newLink">
<label for="description">{{ t('description') }}:</label>
<textarea class="form-control mb-3" id="description" rows="3" placeholder="{{ t('descriptionPlaceholder') }}" v-model="description"></textarea>
<textarea class="form-control mb-3" id="description" rows="3" :placeholder="t('descriptionPlaceholder')" v-model="description"></textarea>
</div>
<button class="btn btn-primary" @click="submit" :disabled="loading">
<span class="spinner-border spinner-border-sm" v-if="loading"></span>
Expand Down
1 change: 1 addition & 0 deletions src/components/List.vue
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ const reportItem = item => {
const isSyncing = defineModel("isSyncing");
const isApplyEdit = ref(false);
const applyingItem = ref({});
const applyEditItem = item => {
isApplyEdit.value = true;
applyingItem.value = item;
Expand Down

0 comments on commit 5be6c6e

Please sign in to comment.