Merge pull request #3428 from chakflying/fix/no-delete-draft-tag

Fix: Hide delete button in Settings -> Create New Tag
This commit is contained in:
Louis Lam 2023-07-16 21:39:12 +08:00 committed by GitHub
commit 695691468c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@
</div>
<div class="modal-footer">
<button v-if="tag" type="button" class="btn btn-danger" :disabled="processing" @click="deleteConfirm">
<button v-if="tag && tag.id !== null" type="button" class="btn btn-danger" :disabled="processing" @click="deleteConfirm">
{{ $t("Delete") }}
</button>
<button type="submit" class="btn btn-primary" :disabled="processing">