Disable save if no fields to modify

This commit is contained in:
shamoon 2024-12-04 11:12:57 -08:00
parent a94266d0c6
commit a7c6249be3

View File

@ -91,6 +91,6 @@
<p class="mb-0 small" i18n>This operation will also remove {{fieldsToRemoveIds.length}} custom field(s) from the selected documents.</p>
}
<button type="button" class="btn btn-outline-secondary" (click)="cancel()" i18n [disabled]="networkActive">Cancel</button>
<button type="submit" class="btn btn-primary" i18n [disabled]="networkActive">Save</button>
<button type="submit" class="btn btn-primary" i18n [disabled]="networkActive || fieldsToRemoveIds.length + fieldsToAddIds.length === 0">Save</button>
</div>
</form>