Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-25 18:50:27 +01:00
Better placement of step loading spinner
Dieser Commit ist enthalten in:
Ursprung
5784a9db20
Commit
cbdad79c90
2 geänderte Dateien mit 13 neuen und 17 gelöschten Zeilen
|
@ -32,28 +32,24 @@
|
||||||
<a href {{action "quit"}} class='action-link quit' tabindex="11">{{i18n "wizard.quit"}}</a>
|
<a href {{action "quit"}} class='action-link quit' tabindex="11">{{i18n "wizard.quit"}}</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if showBackButton}}
|
{{#if saving}}
|
||||||
<a href {{action "backStep"}} class='action-link back' tabindex="11">{{i18n "wizard.back"}}</a>
|
{{loading-spinner size='small'}}
|
||||||
|
{{else}}
|
||||||
|
{{#if showBackButton}}
|
||||||
|
<a href {{action "backStep"}} class='action-link back' tabindex="11">{{i18n "wizard.back"}}</a>
|
||||||
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if showNextButton}}
|
{{#if showNextButton}}
|
||||||
<button class='wizard-btn next primary' {{action "nextStep"}} disabled={{saving}} tabindex="10">
|
<button class='wizard-btn next primary' {{action "nextStep"}} disabled={{saving}} tabindex="10">
|
||||||
{{#if saving}}
|
{{i18n "wizard.next"}}
|
||||||
{{loading-spinner size='small'}}
|
{{d-icon "chevron-right"}}
|
||||||
{{else}}
|
|
||||||
{{i18n "wizard.next"}}
|
|
||||||
{{d-icon "chevron-right"}}
|
|
||||||
{{/if}}
|
|
||||||
</button>
|
</button>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if showDoneButton}}
|
{{#if showDoneButton}}
|
||||||
<button class='wizard-btn done' {{action "done"}} disabled={{saving}} tabindex="10">
|
<button class='wizard-btn done' {{action "done"}} disabled={{saving}} tabindex="10">
|
||||||
{{#if saving}}
|
{{i18n "wizard.done"}}
|
||||||
{{loading-spinner size='small'}}
|
|
||||||
{{else}}
|
|
||||||
{{i18n "wizard.done"}}
|
|
||||||
{{/if}}
|
|
||||||
</button>
|
</button>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -115,13 +115,13 @@
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wizard-buttons > a, .wizard-buttons > button {
|
.wizard-buttons > a, .wizard-buttons > button, .spinner {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
&.done {
|
.spinner.small {
|
||||||
min-width: 55px;
|
margin-right: 10px;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Laden …
In neuem Issue referenzieren