Skip to content

Commit

Permalink
Show edit button for invalid data warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tkleinke committed Oct 6, 2023
1 parent 0b2e526 commit be0e9c0
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions desktop/src/app/components/navbar/warnings/warnings-modal.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,27 +49,20 @@
i18n="@@docedit.tabs.conflicts.resolveConflict">Konflikt lösen</span>
</button>
</span>
<span *ngIf="section.type === 'unconfigured'">
<button class="btn btn-danger" (click)="openDeleteFieldDataModal(section)">
<span class="mdi mdi-delete"></span>
<span *ngIf="section.type === 'invalid' || section.type === 'missingIdentifierPrefix'">
<button class="btn btn-primary" (click)="openDoceditModal(section)">
<span class="mdi mdi-pencil"></span>
<span class="button-label"
i18n="@@navbar.taskbar.warnings.deleteFieldData">Felddaten löschen</span>
i18n="@@resources.contextMenu.edit">Bearbeiten</span>
</button>
</span>
<span *ngIf="section.type === 'invalid'">
<span *ngIf="section.type === 'unconfigured' || section.type === 'invalid'">
<button class="btn btn-danger" (click)="openDeleteFieldDataModal(section)">
<span class="mdi mdi-delete"></span>
<span class="button-label"
i18n="@@navbar.taskbar.warnings.deleteFieldData">Felddaten löschen</span>
</button>
</span>
<span *ngIf="section.type === 'missingIdentifierPrefix'">
<button class="btn btn-primary" (click)="openDoceditModal(section)">
<span class="mdi mdi-pencil"></span>
<span class="button-label"
i18n="@@resources.contextMenu.edit">Bearbeiten</span>
</button>
</span>
</div>
</div>
</div>
Expand Down

0 comments on commit be0e9c0

Please sign in to comment.