FIX: Double footer in install-theme modal (#23503)

This commit is contained in:
Jarek Radosz 2023-09-11 12:04:32 +02:00 committed by GitHub
parent 3a8c0d0408
commit 935625ce2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 24 additions and 26 deletions

View File

@ -167,32 +167,30 @@
</:body> </:body>
<:footer> <:footer>
{{#unless this.popular}} {{#unless this.popular}}
<div class="modal-footer"> {{#if this.duplicateRemoteThemeWarning}}
{{#if this.duplicateRemoteThemeWarning}} <div class="install-theme-warning">
<div class="install-theme-warning"> ⚠️
⚠️ {{this.duplicateRemoteThemeWarning}}
{{this.duplicateRemoteThemeWarning}} </div>
</div> {{/if}}
{{/if}} {{#if this.themeCannotBeInstalled}}
{{#if this.themeCannotBeInstalled}} <div class="install-theme-warning">
<div class="install-theme-warning"> ⚠️
⚠️ {{this.themeCannotBeInstalled}}
{{this.themeCannotBeInstalled}} </div>
</div> {{/if}}
{{/if}} <DButton
<DButton @action={{this.installTheme}}
@action={{this.installTheme}} @disabled={{this.installDisabled}}
@disabled={{this.installDisabled}} class="btn
class="btn {{if this.themeCannotBeInstalled 'btn-danger' 'btn-primary'}}"
{{if this.themeCannotBeInstalled 'btn-danger' 'btn-primary'}}" @label={{this.submitLabel}}
@label={{this.submitLabel}} />
/> <DButton
<DButton class="btn-flat d-modal-cancel"
class="btn-flat d-modal-cancel" @action={{@closeModal}}
@action={{@closeModal}} @label="cancel"
@label="cancel" />
/>
</div>
{{/unless}} {{/unless}}
</:footer> </:footer>
</DModal> </DModal>